cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Page empty of content

From: Alexander Lazic <al-curlusers_at_none.at>
Date: Sat, 21 Aug 2004 20:11:08 +0200

On Sam 21.08.2004 13:41, Robert W March wrote:
>
>To get data from
>http://www.flightplanning.navcanada.ca/cgi-bin/CreePage.pl?Langue=anglais&NoSession=NS_Inconnu&Page=Fore-obs%2Fmetar-taf&TypeDoc=html

I have look with 'LiveHeaders' for mozilla and got another call, see
below please.

>This command produces the expected page but it is without data. The
>actual data for the station, CYMX is not there.

I don't know which data does you mean. I send you my
'flightplanning.html' direct because i don't know if the data you
searched are in there.

>Could someone point me in the right direction.

How about that?

curl -vo flightplanning.html -d \
'NoSession=NS_Inconnu&format=raw&Langue=anglais&Region=can&Stations=CYMX&Location=' \
http://www.flightplanning.navcanada.ca/cgi-bin/Fore-obs/metar.cgi

Hth.

al ;-)

PS: The Request with liveheaders:

POST http://www.flightplanning.navcanada.ca/cgi-bin/Fore-obs/metar.cgi HTTP/1.1
Host: www.flightplanning.navcanada.ca
User-Agent: I geh zum Billa Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040615 Firefox/0.9
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: de-at,de;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Referer: http://www.flightplanning.navcanada.ca/cgi-bin/CreePage.pl?Langue=anglais&NoSession=NS_Inconnu&Page=Fore-obs%2Fmetar-taf&TypeDoc=html
Content-Type: application/x-www-form-urlencoded
Content-Length: 81
NoSession=NS_Inconnu&format=raw&Langue=anglais&Region=can&Stations=CYMX&Location=
Received on 2004-08-21