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

curl-and-php

Re: XML => Curl => PHP

From: Betim Shkodra <sh.betim_at_gmail.com>
Date: Tue, 16 Aug 2005 14:11:26 +0200

Thank you !

And to post information sent by Curl with php how I make that ?

Thank you for your help !

Best regards !
2005/8/15, Daniel Stenberg <daniel-curl_at_haxx.se>:
> On Mon, 15 Aug 2005, Betim Shkodra wrote:
>
> > $header[] = "Content-type: text/xml\r\n";
>
> The custom headers should not have CRLF added, libcurl adds those on its own.
> Adding them will only confuse libcurl.
>
> > $header[] = "Content-length: ".strlen($xml_data)."\r\n";
>
> Don't do this. Let libcurl set that length on its own.
>
> > $header[] = "Connection: Close\r\n";
>
> Don't do this. Let libcurl deal with connections on its own.
>
> > $header[] = "\r\n";
>
> And certainly don't do this. This is not a header and this will cause a very
> weird request.
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>

-- 
----
Betim Shkodra
Mobile : +41797030229
E-Mail : sh.betim_at_gmail.com
Received on 2005-08-16