curl-and-python
Re: pycurl and rest PUT interface
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 22 Jan 2013 22:24:05 +0100 (CET)
Date: Tue, 22 Jan 2013 22:24:05 +0100 (CET)
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-pythonReceived on 2013-01-22