Curl and python httplib?

2013-04-01 Thread ??????PHP
Guys, I take a project that need send request to Hadoop by curl. But now, the curl and pycurl can't satisfy my project. So i need use the powerful httplib. But failed. my curl request: curl -i -X PUT http://localhost:50070/webhdfs/v1/levi/7?op=CREATE; my return: HTTP/1.1 307

Re: Curl and python httplib?

2013-04-01 Thread Mark Lawrence
On 30/03/2013 05:08, Сѧ԰PHP wrote: Guys, I take a project that need send request to Hadoop by curl. But now, the curl and pycurl can't satisfy my project. So i need use the powerful httplib. But failed. *my curl request:* curl -i -X PUT http://localhost:50070/webhdfs/v1/levi/7?op=CREATE; *my

Re: Curl and python httplib?

2013-04-01 Thread vasudevram
On Tuesday, April 2, 2013 1:03:58 AM UTC+5:30, Mark Lawrence wrote: On 30/03/2013 05:08, Сѧ԰PHP wrote: Guys, I take a project that need send request to Hadoop by curl. But now, the curl and pycurl can't satisfy my project. So i need use the powerful httplib. But failed.

Curl and python httplib?

2013-03-28 Thread ??????PHP
Guys, I take a project that need send request to Hadoop by curl. But now, the curl and pycurl can't satisfy my project. So i need use the powerful httplib. But failed. my curl request: curl -i -X PUT http://localhost:50070/webhdfs/v1/levi/7?op=CREATE; my return: HTTP/1.1 307

Re: Curl and python httplib?

2013-03-28 Thread Chris Rebert
On Wed, Mar 27, 2013 at 7:54 PM, 小学园PHP xxy-...@qq.com wrote: Guys, I take a project that need send request to Hadoop by curl. But now, the curl and pycurl can't satisfy my project. So i need use the powerful httplib. I would say that `requests` (http://docs.python-requests.org/en/latest/ )