curl-and-php
Re: curl to php (xml,epp) [2]
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 14 Aug 2003 13:04:12 +0200 (CEST)
Date: Thu, 14 Aug 2003 13:04:12 +0200 (CEST)
On Wed, 13 Aug 2003, toogood wrote:
> what is the CURL_SETOPT (S) in PHP to send a file.xml as curl --data-binary
> @file.xml
I don't know for PHP/CURL, but libcurl in itself has no special ascii/binary
treatment. It sends everything it gets told to send and makes no difference
between binary or ascii.
If PHP can hold binary data in its strings, then I can't see why the regular
POST examples won't work for binary posts. Such as this example:
http://curl.haxx.se/libcurl/php/examples/?ex=simplepost.php
-- Daniel Stenberg -- curl: been grokking URLs since 1998 ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01Received on 2003-08-14