cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Question Regarding Opening a URL in CURL

From: Naveed Memon <naveedmemon_at_gmail.com>
Date: Sat, 8 Oct 2005 16:39:17 -0400

Hello...

I have another question, lets hope I get the answer this time... I
authenticate myself on a website, after going throug 3-4 different
locations, the system redirects me to a different URL, here's the
example:

http://www.EXAMPLE.com/login.php?msg=0&page=homepage.php&code=EDJFWEUPWERSKLDJFDQAAAG0AAAA1iWSb4VHhX2OMUg4Uj7Eh-h9jw6DVZVv9ISYoLOHZ7O9O-8DVEJMhQ4p5BOBbjstFD-sx0x4vKC64hSwf0lpI0-kGcJWlTsMHzSFh3mBIyKqDOjl6S-O8YlzVnQ0ShDxSp1

Now, if I open this URL in a new browser window, everything works
fine, I'm logged into the system, even if I browse this generated URL
on a different machine, it works fine, it shows that I'm logged in
(they're probably storing this code on their server and it lets me
login) however, the URL doesn't work if I logout, or after say 10-15
minutes... and the URL becomes invalid...

The problem is: If I go to this URL using cURL, it gives me the same
message as if the URL is no longer valid, even using the same cURL
object, it's giving me the same result...

If I monitor the headers while browsing that URL using Live HTTP
Headers in Firefox, it shows that this URL is actually saving some new
cookies, but cURL is enable to see any cookie on that location...

Am I doing anything wrong here?

Thanks
- Naveed
P.S. Please don't say I need to take Intro to cURL class, 'coz I know
how it works - i have even successfully logged into Hotmail, Yahoo and
such systems...

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2005-10-08