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

curl-and-php

Re: Question Regarding Opening a URL in CURL

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sat, 8 Oct 2005 23:03:41 +0200 (CEST)

On Sat, 8 Oct 2005, Naveed Memon wrote:

> 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...

If curl doesn't get the cookies that your browser does, then the server
doesn't send them to curl as it did for your browser.

Then you need to start adjusting your request to look more like your browser's
to trick the server into being nice to curl too.

But if you have taken the curl class as you said you have, you should know
this already why I reckon the problem might be different. If you had included
some further details then perhaps I could've helped better.

(Don't expect to get much help on this list as there seem to be very few but
me to ever reply to questions here - and I only reply occasionally to mails on
this list. I suggest you switch over to use the curl command line tool instead
of the PHP/CURL binding and then ask questions on the curl-users mailing list
instead. Judging from past experiences, there is no person involved in the
PHP/CURL binding who feel like responding to users' questions.)

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