Questions tagged [httplib2]

A comprehensive HTTP client library

A comprehensive HTTP client library, httplib2 supports many features left out of other HTTP libraries.

217 questions
2
votes
1 answer

Python CouchDB/httplib - error: [Errno 61] Connection refused

Did any one get this error? Please advice! There seems to be some problem with httplib python library. Python 2.7 (r27:82508, Jul 3 2010, 20:17:05) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "copyright", "credits" or "license()" for more…
heapzero
  • 1,413
  • 2
  • 13
  • 18
2
votes
1 answer

Python script doesn't work on Windows (but works on mac)

I run exactly the same script successfully on mac, but it fails on windows server 2012 r2. I wonder what can be a reason and what should i check? Here is a script: import pygsheets gc = pygsheets.authorize(service_file='credentials.json') Im…
user912830823
  • 1,179
  • 3
  • 14
  • 25
2
votes
0 answers

Why is discovery from google-api-python-client causing timeouts?

Using the discovery.build() from the google-api-python-client (version 1.6.2) in my web app is causing timeouts. Running the following piece of code import httplib2 from apiclient import discovery http = httplib2.Http() discovery.build('classroom',…
qff
  • 5,524
  • 3
  • 37
  • 62
2
votes
0 answers

gspread/ httplib2 SSLHandshakeError

I had gspread for python working, but after about a month I started getting the following error: gc = gspread.authorize(credentials) File…
Mark B
  • 205
  • 2
  • 7
2
votes
0 answers

httplib2 'disable_ssl_certificate_validation=False' not working - Python3

I'm running into a strange issue with httplib2 and python3, I have a little script to connect to my test server, I try to disable SSL verification but it still spits out the following: File…
user3690467
  • 3,049
  • 6
  • 27
  • 54
2
votes
0 answers

Python: post files using httplib2

Trying to post files of few MB in size. I made it working using python-requests package with multiform data, but now I need to add 2 way SSL support and unfortunately the python-requests version 0.8.2-1 doesn't have the support for 2 way SS. We are…
mbz_slk
  • 231
  • 4
  • 15
2
votes
3 answers

How to download a large file with httplib2

Is it possible to download a large file in chunks using httplib2. I am downloading files from a Google API, and in order to use the credentials from the google OAuth2WebServerFlow, I am bound to use httplib2. At the moment I am doing: flow =…
Martin Taleski
  • 6,033
  • 10
  • 40
  • 78
2
votes
2 answers

python httplib2 certificate verify failed

I have tried everything I can find to get this to work... I'm working on a plugin for a python-based task program (called GTG). I'm running Gnome on Opensuse Linux. Code (Python 2.7): def initialize(self): """ Intialize backend: try to…
brainstormtrooper
  • 485
  • 2
  • 6
  • 18
2
votes
0 answers

download speed in google cloud storage

I am using the MediaIoBaseDownload to implement download from GCS. But I found that the download response is always about 5 seconds between each response. if I download two files at the same time, the gap between each response will around 10…
Mike Chiu
  • 45
  • 7
2
votes
1 answer

What does h = httplib2.Http('.cache') mean?

What does line 2 (h = httplib2.Http('.cache')) mean here? >>> import httplib2 >>> h = httplib2.Http('.cache')
Bhoomika Sheth
  • 323
  • 5
  • 17
2
votes
1 answer

How can I disable automatically following redirects using python's httplib2?

I would like to disable httplib2 from following redirects when I make a GET request to some site. Is this possible?
Popcorn
  • 5,188
  • 12
  • 54
  • 87
2
votes
1 answer

Accessing python httplib2 over a network share in windows 7

I am trying to run python from a network share on windows 7. The network share is T: >t:\python-2.6.1\python Python 2.6.1 (r261:67517, Dec 4 2008, 16:51:00) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for…
aj.
  • 21
  • 1
2
votes
2 answers

Including httplib2

So I was having the usual problem with importing httplib2, I came across this and similar answers. But now I must be bold, and ask a dumb question, how do I include/link the modual into my project?
EasilyBaffled
  • 3,822
  • 10
  • 50
  • 87
2
votes
3 answers

pyinstaller compiled file has ssl issue, error: 185090050

i've got some python code that's successfully running on my windows machine in the python ide and cmd prompt. after i compile with pyinstaller (into one file) i get the following error: Traceback : File "", line…
bumpkin
  • 3,321
  • 4
  • 25
  • 32
2
votes
1 answer

Python write binary data to MIME infoset

I am tring to post an HTTP request using httplib2 that contains some xml and some binary data using this infoset: MIME-Version: 1.0 Content-Type: Multipart/Related;boundary=MIME_boundary; ... --MIME_boundary Content-Type: application/xop+xml; //…
Carlo Piva
  • 21
  • 3