curl-and-python

Re: pycurl and rest PUT interface

From: Michael Wood <esiotrot_at_gmail.com>
Date: Tue, 22 Jan 2013 23:32:02 +0200

Hi

On 22 January 2013 23:29, Mark Seger <mjseger_at_gmail.com> wrote:
> 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

No, he is saying that if you just append "--libcurl filename.c" to the
end of that curl command line it will generate a C program that you
can use as a guide for your Python program.

> 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
>>
>> --
>>
>> / 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
>

-- 
Michael Wood <esiotrot_at_gmail.com>
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2013-01-22