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
0
votes
1 answer

Forbidden access to white listed isiscouch

Im trying to reach isiscouch on my app on pythonanywhere and despite the fact that the site is whitelisted and that I'm currently a free user it just returns HTTPError: (403, 'Forbidden') on error log. What am I missing here? response, content =…
JeanPaulDepraz
  • 625
  • 7
  • 12
0
votes
2 answers

I am using httplib2 and had read that httplib2 handles caching automatically but when I execute 'fromcache' on the response object, it returns false

This is my code import httplib2 httplib2.debuglevel = 1 h = httplib2.Http(".cache") response, content = h.request('http://diveintopython3.org/examples/feed.xml') print(response.fromcache)
swapnil
  • 29
  • 2
0
votes
0 answers

Connection refused error while using python-Instagram API

I tried to run a simple code to extract data from Instagram using Python-Instagram module The code is from instagram.client import InstagramAPI api = InstagramAPI(client_id='YOUR_CLIENT_ID',client_secret='YOUR_CLIENT_SECRET') popular_media =…
Prince Bhatti
  • 4,671
  • 4
  • 18
  • 24
0
votes
0 answers

multiple HTTPConnection requests to different domains throws out socket.error in Python

My python script needs to establish two HTTPConnection from the httplib library, each connecting to a different domain to GET data. I also have to make multiple requests to those domains multiple times. The data returned from requests is all in…
alextc
  • 3,206
  • 10
  • 63
  • 107
0
votes
1 answer

HTTP Requests using a range of IP address on python

I have a VM as a server with IP address 10.91.55.2. I have another VM which acts as a client having IP address in the range 10.91.56.2......10.91.56.10. I want to write a script that will use all these IP address on the client to send HTTP request…
0
votes
1 answer

HTTP requests using multiple IP addresses on python

I'm writing a python script that will send http requests concurrently to the urls mentioned in a file using python. The script works fine for a single IP address. The OS I'm using is linux. I've generated virtual IP addresses like eth0:1,eth0:2 etc.…
0
votes
1 answer

Python httplib2 "httplib2.SSLHandshakeError"

I have this piece of code that tries to get the page content from a given url. import httplib2 start_url = "https://www.somesite.com" http = httplib2.Http(disable_ssl_certificate_validation=True) status, response = http.request(start_url) However,…
Fernando Retimo
  • 1,003
  • 3
  • 13
  • 25
0
votes
1 answer

httplib2.SSLHandshakeError - Google Cloud Storage Python application

We are trying to download the data transfer files from our bucket, using the python cloud storage sample application chunked_transfer.py available at the below link…
Raja
  • 513
  • 5
  • 18
0
votes
1 answer

Python httplib2 WSSE example

Does anyone have a working example of using httplib2 for WSSE authentication? I've looked around for one but can't find anything.
steveYeah
  • 351
  • 5
  • 15
0
votes
0 answers

Where i put my library httplib2 in my GAE project

I tried to make a simple application "guestbook" that stores the messages in the drive of the author. I use the libraries "httplib2", "apiclient" "," UriTemplate ". Google app engine does not support these libraries so I have included in my project.…
0
votes
1 answer

Python, httplib2, Unexpected error: socket.error

Using python 2.4.3 I'm trying to make a HTTP server which: (1)gets a message with 'POST', (2) makes an answer message, (3) send the answer message back to sender. Step (1) and (2) go well, Step 3 fails.... sometimes. It looks like there is some…
0
votes
2 answers

Python Regex Help (httplib2 cookies)

Having the same problem as the poster of this question: httplib2, how to set more than one cookie? The cookie looks like this.. PHPSESSID=8527b5532b6018aec4159d81f69765bd; path=/; expires=Fri, 19-Feb-2010 13:52:51 GMT, id=1578; expires=Mon,…
Cookies
  • 1
  • 1
0
votes
0 answers

Httplib2 Grab The Source Code?

Is there any way of grabbing the html source code from here? I'm sending a post login request to a website, and if the response status is 302 I want to check the source code. I couldn't find away to do this. Here is what I have: http =…
RydallCooper
  • 19,094
  • 1
  • 11
  • 17
0
votes
1 answer

Google Drive API + App Engine = time out

So I built an app on App Engine that takes users files and move them to certain folders in the same domain. I made REST api that calls Drive API to list files, rename files, and change permissions etc. On app load, it fires 4 ajax calls to the…
user1297061
  • 1,531
  • 2
  • 13
  • 15
0
votes
0 answers

urllib2 python EOF Error

I started writing a script using python (has to be python) to sync some changes from a local database to a remote one. It runs every 3 hours. When I started I ran into the urllib2 bug giving the EOF error. After some poking around I found the…
KennyW
  • 1