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

curl-and-php

Re: add extra PUT data

From: Stephen Pynenburg <spynenburg_at_gmail.com>
Date: Thu, 19 Jun 2008 20:04:23 -0400

As far as I can see, using PUT with cURL requires you to be using an actual
file. I don't think getting an option added to curl_setopt() is terribly
likely, at least not anytime soon - I'd imagine you'd have to ask the cURL
creators and the PHP guys.

-Stephen

On Thu, Jun 19, 2008 at 5:13 PM, Dan Myers <heron_at_xnapid.com> wrote:

> I wrote:
>
>> My question is, how do I go about adding this extra data to a PUT request?
>> I don't see any relevant curl_setopt options, but I might be missing
>> something.
>>
> Noone has answered yet, but I've come up with the solution of writing the
> data I need to a temp file (created with tmpfile) and using that temp file
> for the PUT request. Is there a better way?
>
> Would it be possible to get another option added to curl_setopt to allow us
> to send strings directly without having to write a temporary file?
>
>
> - Dan
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-06-20