John Giotta wrote:
>
>Is there a verbose feature for urllib2.urlopen?
You have the full source code for the module right in front of you.
Bringing up urllib2.py in an editor is quicker than waiting for a newsgroup
reply.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
--
http://ma
Is there a verbose feature for urllib2.urlopen?
Here is my python snippet for posted the file:
req = urllib2.Request(url='https://%s%s' % (host, selector),
data=open('test.zip', 'rb').read())
req.add_header('content-type', 'application/zip')
req.add_header('Authorization', 'Basic %s' % self.auth)
On 2009-09-09, John D Giotta wrote:
> I'm working with an API that allows me to POST a zip file via HTTP and
> the documentation uses a cURL example. cURL works, but when I try to
> POST the file via python it fails.
> I don't want to use cURL (since I'm trying to be transparent and
> dependency-l
On Wed, Sep 9, 2009 at 1:57 PM, John D Giotta wrote:
> I'm working with an API that allows me to POST a zip file via HTTP and
> the documentation uses a cURL example. cURL works, but when I try to
> POST the file via python it fails.
> I don't want to use cURL (since I'm trying to be transparent an
I'm working with an API that allows me to POST a zip file via HTTP and
the documentation uses a cURL example. cURL works, but when I try to
POST the file via python it fails.
I don't want to use cURL (since I'm trying to be transparent and
dependency-less), but I can't find anything online that wor