cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Page empty of content

From: Robert W March <RWMarch_at_linux.ca>
Date: Sat, 21 Aug 2004 23:16:10 -0400

Alexander,

Your construct is correct and the data _is_ returned as shown in
your file, "flightplanning.html". Thank you very much indeed for
taking the time to help me.

You correctly identified the need for the 'location=' phrase. Also, I
do not require the button related phrase, 'get-metar-taf=Get the
bulletins'. Apparently you determined this by using 'LiveHeaders'.
I am not familiar with 'LiveHeaders'. I must read up on that.

Thank you,
Robert

On Saturday August 21 2004 14:11, Alexander Lazic wrote:
> 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=htm
> >l
>
> 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=a
>nglais&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=

-- 
                             Robert W March
                   	   St. Andrew's House
                  	  l'Orignal ON  Canada
Received on 2004-08-22