curl-and-php
Re: cURL and secure server
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 9 Mar 2004 10:40:19 +0100 (CET)
Date: Tue, 9 Mar 2004 10:40:19 +0100 (CET)
On Mon, 8 Mar 2004, Michael Sisson wrote:
> I realize I am pretty close to getting this working but is eluding me. I
> will post the headers that I need to emulate and then the code I have so
> far, and see if someone can't straighten me out.
If you _need_ to pass on all these specific headers, then add them to the
request...
> curl_setopt ($ch, CURLOPT_HTTPHEADER, Array("Content-Type:
> application/x-www-form-urlencoded"));
... this code adds no headers at all but only changes the Content-Type:
header, to the same value it would use if you didn't do this! ;-)
I would guess the main reason it fails for you is your lack of sending the
cookie in your request.
-- Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/ [[ Do not send mails to this email address. They won't reach me. ]]Received on 2004-03-09