httplib Questions

10

I have a site that runs with follow configuration: Django + mod-wsgi + apache In one of user's request, I send another HTTP request to another service, and solve this by httplib library of python...
Invoice asked 2/12, 2009 at 18:36

3

Solved

I am making HTTP requests using the requests library in python, but I need the IP address from the server that responded to the HTTP request and I'm trying to avoid making two calls (and possibly h...
Antonyantonym asked 18/3, 2014 at 22:35

3

Solved

I've used two different python oauth libraries with Django to authenticate with twitter. The setup is on apache with WSGI. When I restart the server everything works great for about 10 minutes and ...
Ortega asked 18/12, 2009 at 0:58

7

Solved

I found this script online: import httplib, urllib params = urllib.urlencode({'number': 12524, 'type': 'issue', 'action': 'show'}) headers = {"Content-type": "application/x-www-form-urlencoded", ...
Polymerize asked 4/7, 2012 at 4:30

8

Solved

I was wondering, how do you close a connection with Requests (python-requests.org)? With httplib it's HTTPConnection.close(), but how do I do the same with Requests? Code: r = requests.post("h...
Walter asked 11/4, 2012 at 22:54

2

I am currently programming a proxy server using httplib, and when I try to connect to HTTPS websites (such as facebook and google) my client sends me "CONNECT" requests that look like this: CONNEC...
Exemplar asked 13/2, 2015 at 9:7

2

I'm using python requests library with sessions: def _get_session(self): if not self.session: self.session = requests.Session() return self.session And sometimes I'm getting this warning in m...
Vacuity asked 13/5, 2014 at 13:36

4

Solved

is there a possibillity to get the filename e.g. xyz.com/blafoo/showall.html if you work with urllib or httplib? so that i can save the file under the filename on the server? if you go to sit...
Margaret asked 2/8, 2012 at 18:5

6

Solved

I'm writing a REST client for elgg using python, and even when the request succeeds, I get this in response: Traceback (most recent call last): File "testclient.py", line 94, in <module> r...
Retharethink asked 12/7, 2010 at 19:24

3

Solved

I have been having a persistent problem getting an rss feed from a particular website. I wound up writing a rather ugly procedure to perform this function, but I am curious why this happens and whe...
Retractor asked 3/1, 2013 at 23:43

3

Solved

I am trying to scrape data from the URLs below. But selenium fails when driver.get(url) Some times the error is [Errno 104] Connection reset by peer, sometimes [Errno 111] Connection refused. On ra...
Hoopes asked 1/9, 2015 at 9:30

2

Solved

I'm looking to make a fast streaming download -> upload to move large files via HTTP from one server to another. During this, I've noticed that httplib, that is used by urllib3 and therefore also ...
Connote asked 10/2, 2018 at 10:46

2

Solved

How do I have python httplib accept untrusted certs? I created a snake oil/self signed cert on my webserver, and my python client fails to connect as I am using a untrusted cert. I'd rather proble...
Unprofitable asked 15/3, 2011 at 23:51

3

Solved

I am trying to figure out how to send data to a server through a proxy. I was hoping this would be possible through tor but being as tor uses SOCKS it apparently isn't possible with httplib (correc...
Stanstance asked 4/8, 2012 at 3:52

2

Solved

After running for a number of hours on Linux, my Python 2.6 program that uses urllib2, httplib and threads, starts raising this error for every request: <class 'urllib2.URLError'> URLError(g...
Blockhouse asked 2/12, 2011 at 12:45

3

Solved

I'm using httplib to access an api over https and need to build in exception handling in the event that the api is down. Here's an example connection: connection = httplib.HTTPSConnection('non-ex...
Emmery asked 2/11, 2010 at 16:44

4

Solved

I'm trying to write a script to test for the existence of a web page, would be nice if it would check without downloading the whole page. This is my jumping off point, I've seen multiple examples ...
Merlon asked 24/6, 2011 at 17:7

2

Solved

I install selenium, chrome, pyvritualdisplay and xvfb using the following tutorial: https://christopher.su/2015/selenium-chromedriver-ubuntu/ when i try to run a python selenium script i get this ...
Usurpation asked 27/10, 2016 at 18:53

8

Solved

I am trying to verify the that target exposes a https web service. I have code to connect via HTTP but I am not sure how to connect via HTTPS. I have read you use SSL but I have also read that it d...
Benedix asked 27/1, 2010 at 11:22

1

I need a simple Client-side method that can send a boolean value in a HTTP POST request, and a Server-side function that listens out for, and can save the POST content as a var. I am having ...
Oversight asked 28/6, 2016 at 7:59

2

Solved

>>> import httplib >>> x = httplib.HTTPConnection('localhost', 8080) >>> x.connect() >>> x.request('GET','/camera/store?fn=aaa&ts='+str.encode('2015-06-15T14...
Injurious asked 31/5, 2016 at 9:9

2

I have a long running python script, launched with upstart. This script makes quite a lot of requests. Everything works well at first, however after a few hours I start permanently getting the foll...
Touchstone asked 26/12, 2011 at 8:45

4

Solved

I've implemented a Pivotal Tracker API module in Python 2.7. The Pivotal Tracker API expects POST data to be an XML document and "application/xml" to be the content type. My code uses urlib/httpli...
Taurine asked 3/11, 2011 at 10:15

3

Solved

I want to proxy requests made to my Flask app to another web service running locally on the machine. I'd rather use Flask for this than our higher-level nginx instance so that we can reuse our exis...
Outhe asked 11/7, 2011 at 20:48

2

Solved

By default httplib debug send, headers and reply information returns as logger.info, Instead can how do i display send, headers and replay as part of Debug information? import requests import lo...
Aeromechanic asked 14/12, 2015 at 13:4

© 2022 - 2024 — McMap. All rights reserved.