cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: about location field , when there is the case of moved resources.

From: Aleksandar Lazic <al-curllibrary_at_none.at>
Date: Wed, 28 Mar 2007 23:46:43 +0200

Hi,

On Mit 28.03.2007 19:12, Rajesh Singh wrote:
>
>first of all thanks for good ideas( i.e. LiveHttpHeaders). i got many a
>things to know about http headers.

http://curl.haxx.se/docs/relatedtools.html

>I am getting little bit comfortable with curl now, well but i guess
>many a thing more i require to know about.

Maybe http://curl.haxx.se/support.html ;-)

>well ! ahead is a problem i am not getting to it.. Please explain a
>bit, if you could and please provide some clue.

Let's try.

http://curl.haxx.se/libcurl/c/libcurl-tutorial.html => cookies
http://curl.haxx.se/lxr/source/docs/examples/cookie_interface.c

>>>>>Look this is I am getting in the browser's IEhttpheaders
>
>GET /h/addjob.asp?stylecode=&brand=aa&recruiterid=ZZZZZ206FE33AF125288866 HTTP/1.1
>Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
>Referer: http://www.awesomeaccountants.com/h/foremp.asp?stylecode=&brand=aa&email=krishan_vinay@yahoo.com&password=kshitiju28&rid=ZZZZZ206FE33AE125156004&subbrand=
>Accept-Language: en-us
>Accept-Encoding: gzip, deflate
>User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)
>Host: www.awesomeaccountants.com
>Connection: Keep-Alive
>Cookie: ASPSESSIONIDAAQBTTDA=DOFEFEIAKGNPKFEKPNEDJONO
^^^^^^^^^^^^^^

Do you handle the Cookies in your .net right?!

http://curl.haxx.se/libcurl/c/curl_easy_setopt.html => cookie

>>>>while i get different location reference when i look at libcurlnet
>>>>debug message using in my application.

>GET /h/addjob.asp?stylecode=&brand=aa&recruiterid=ZZZZZ206FE33A2123561660 HTTP/1.1 Host: www.awesomeaccountants.com Pragma: no-cache Accept: */* Referer: http://www.awesomeaccountants.com/h/foremp.asp?stylecode=&brand=aa&email=krishan_vinay@yahoo.com&password=kshitiju28&rid=ZZZZZ206FE33A0123295936&subbrand= Cookie: ASPSESSIONIDACARTDCB=BGGAHMNBPDILLGHALADMCBEH
>===========
^^^^^^^^^^^^^^^^
Is this the same string which will be send to the server?!
There should be some more '\r\n' ;-)

>HTTP/1.1 302 Object moved
>Via: 1.1 NETSERVER
>Connection: Keep-Alive
>Proxy-Connection: Keep-Alive
>Content-Length: 187
>Date: Wed, 28 Mar 2007 14:03:40 GMT
>Location: reclogin.asp?stylecode=&brand=aa&from=addjob&subbrand=
>Content-Type: text/html
>Server: Microsoft-IIS/5.0
>Added cookie ASPSESSIONIDAAQBTTDA="IOFEFEIAGNAFKCCILINMLOHA"
>
>what do i now look for????

The *right* request to the server.

BR

Aleks
Received on 2007-03-28