curl-and-python

Re: pycurl and rest PUT interface

From: Mark Seger <mjseger_at_gmail.com>
Date: Tue, 22 Jan 2013 16:29:14 -0500

thanks for the quick reply
I'm not sure what you're saying because when I go to the libcurl page it
talks about python bindings with ultimately points me back to pycurl.
if you're suggesting I do it in C and call libcurl, my requirement is to do
it in python so that wouldn't work
-mark

On Tue, Jan 22, 2013 at 4:24 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Tue, 22 Jan 2013, Mark Seger wrote:
>
> I have an example what I want to do in curl, but don't know how to
>> translate this to pycurl.
>>
>
> Try --libcurl, it makes a C program but it is very similar to what a
> pycurl program could look like.
>
>
> curl -X PUT -k -i -H X-Auth-Token:$auth -T xyzzy ${url}/xyzzy/xyzzy
>>
>
> -X is pointless here: http://curl.haxx.se/docs/faq.**
> html#curl_X_gives_me_HTTP_**problems<http://curl.haxx.se/docs/faq.html#curl_X_gives_me_HTTP_problems>
>
> --
>
> / daniel.haxx.se
> ______________________________**_________________
> http://cool.haxx.se/cgi-bin/**mailman/listinfo/curl-and-**python<http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python>
>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2013-01-22