> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Perjan Moors wrote:
>>
>> Perjan Moors wrote:
>>>>> Hi there,
>>>>>
>>>>> I am trying to wget the URL
>>>>> http://www.programmagids.nl/[EMAIL PROTECTED]&datum=2008-01-10
>>>>>
>>>>> but it doesn't work. wget seems to shuffle around a bit with the %26
>>>>> and
>>>>> the & character, but in the end sends a http request with an &
>>>>> instead
>>>>> of
>>>>> the %26, which of course doesn't work.
>>>>>
>>>>> I'm using wget 1.9.1 on windows vista
>>>>>
>>>>> Is there any way to make wget fetch this URL?
>> Hi!
>>
>> Try using a more recent release; it seems to work as expected with Wget
>> 1.10.2 running on Red Hat.
>>
>> You can get recent versions of Wget at
>> http://www.christopherlewis.com/WGet/WGetFiles.htm; you may as well get
>> the top link, labeled TRUNK, as that's due to release very soon, and
>> should be stable.
>>
>>>
>
>> Hi Micah,
>
>> Both version 1.10.2 as TRUNK have the same problem as the 1.9.1 version:
>
>> C:\>wget "http://www.programmagids.nl/zoeken.php?zender=N
>> [EMAIL PROTECTED]&datum=2008-01-10"
>> --2008-01-11 03:13:10--
>> http://www.programmagids.nl/zoeken.php?zender=Nederland
>> [EMAIL PROTECTED]&datum=2008-01-10
>> Resolving www.programmagids.nl... 83.80.8.78
>> Connecting to www.programmagids.nl|83.80.8.78|:80... connected.
>> HTTP request sent, awaiting response... 302 Found
>> Location: /zoeken.php?cookies=no&zender=Nederland 3 &
>> [EMAIL PROTECTED]&datum=2008-01-10 [fol
>> lowing]
>> --2008-01-11 03:13:10--
>> http://www.programmagids.nl/zoeken.php?cookies=no&zende
>> r=Nederland%203%20&[EMAIL PROTECTED]&datum=2008-01-10
>> Connecting to www.programmagids.nl|83.80.8.78|:80... connected.
>> HTTP request sent, awaiting response... 200 OK
>> Length: unspecified [text/html]
>> Saving to: [EMAIL PROTECTED]&zender=Nederland 3 &
>> [EMAIL PROTECTED]&datum=2008-01-10'
>
>>     [ <=>                                    ] 18,661      --.-K/s   in
>> 0.06s
>
>> 2008-01-11 03:13:11 (290 KB/s) - [EMAIL PROTECTED]&zender=Nederland
>> 3
>> & [EMAIL PROTECTED]
>> p&datum=2008-01-10' saved [18661]
>
>> As you can see, the HTTP request contains the & character instead of %26
>
> No it doesn't; it clearly contains %26. It sends the request, with %26,
> to the server, which then redirects Wget to a URL containing an
> ampersand, which then is successfully downloaded. Where's the problem?
>
> - --
> Micah J. Cowan
> Programmer, musician, typesetting enthusiast, gamer...
> http://micah.cowan.name/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHhuhV7M8hyUobTrERAnNGAJ9C90z36jY/lbdszwKAeHHv1X1hTACfZVcn
> LZVE+rQsE5ppQjkF2t6C/H4=
> =j6/e
> -----END PGP SIGNATURE-----
>


Hi Micah,

I that case I'm mistaken in reading the error output.
The problem still is: it doesn't get the same page my browser does, but
the default page that is displayed in case of faulty arguments.

If I open the page with my browser, I get the television program listing.
If I get it with wget, I get the page with the message "Er zijn geen
Programma's gevonden.", which means "no programs have been found."

There is an error in the website as well, as when I click page two, I get
the same problem, while when I type page=2 in the URL, it works (in the
browser)

Any idea how to get the right page with wget?

Thanx,

Perjan

Reply via email to