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

curl-and-php

Re: cURL and secure server

From: Michael Sisson <msisson_at_webcoat.com>
Date: Tue, 09 Mar 2004 08:06:43 -0600

How do you send the cookie? CookieJar? What would you do?

Daniel Stenberg wrote:

>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.
>
>
>
Received on 2004-03-09