What am I trying to do?
Visit a site, retrieve cookie, visit the next page by sending in the cookie info. It all works but httplib2 is giving me one too many problems with socks proxy on one site.
http = httplib2.Http()
main_url = 'http://mywebsite.com/get.aspx?id='+ id +'&rows=25'
response, content = http.request(main_url, 'GET', hea...
How do I fix this?
PS: On googling, I found that this is some httplib2 bug but I didn't understand how to use the patches people have provided.
Traceback (most recent call last):
File "alt_func.py", line 18, in <module>
func(code)
File "alt_func.py", line 9, in func
resp, content = h.request(url_string, "GET", headers={'...
Is there any way to use httplib2 via protected socks server using some password and username, does add_credentials method work well in this case?
For now I have a code shown below
proxy.add_credentials(account.get('USER'), account.get('PASS'))
or do I need to user proxy_info attribute with the necessary information?
...
I'm building an application in Python2.6 that needs to get data from CouchDb. I'm using CouchDB-0.8-py2.6 to connect to the database.
I'm using this code:
import couchdb
server = couchdb.Server(url='http://localhost:5984/', full_commit=True, session=None)
db = server['databaseName']
doc = db['docId']
value = doc['value']
print(value)
...
Hello!
I am having some trouble using httplib2.
When I browse to the page with Google Chrome and save the source the file is about 106kB. When I request the file with httplib2 i only get 99.x kB and there is missing a lot of text in the beginning of the file. Is there some kind of size limit on bytes objects? Am I doing something wrong...
I'm trying to make an http request using httplib2:
import httplib2, time, re, urllib`
conn = httplib2.Http(".cache")
page = conn.request(u"http://www.mydomain.com/search?q=cars#p=100","GET")
The response is ok, but the "#p=100" does not get passed over. Does anyone know how to pass this over with httplib2?
thanks
...