Prevent http request caching at client side

I am trying to measure the response time of a Web Server , at client side but the response times are very small. So I think that the requests are caching at the client side. I have already tried adding appendices next to url but no change. ...
more »

2017-03-19 13:03 (0) Answers

Python connect to rest api

i want to connect to a rest api with the following code: data = requests.get("http://pbx/rest/login").json() head = {'loginType' : 'Internal','nonce' : data["nonce"], 'secret' : (hashlib.sha1((LOGIN_ID+data['nonce']+PASSWORD).encode('utf-8')).hexdig...
more »

2017-02-18 13:02 (1) Answers

Google Maps API Parameters

I'm sure this is an obvious mistake, but does anyone know why this code isn't working? Am I using the python requests library incorrectly? import requests header = {'Content-Type ': 'application/json'} body = { "api_key": REDACTED, "size": "20...
more »

2017-01-06 23:01 (1) Answers

Passing Token to REST Api using Python

I know that there are a few question on SO that seem to answer this question but none of them get the job done for me. So here is my code ... import requests bearer_token = 'eyJhbGciOiJIUzI1NiIsImtpZCI6IlRFU1QifQ.eyJjbGllbnRpZCI6ImFhZDkyNjc5MmJiMj...
more »

2016-12-06 22:12 (1) Answers

Is Jython a liability in my codebase?

I've inherited a large Java/Scala codebase that uses Jython to interface with our equally large Python codebase. Things were going swimmingly until about three days ago when suddenly all of our builds started failing in the Jython stage with the mes...
more »

2016-11-19 22:11 (1) Answers


I have containing 4 lines import requests url = "" locations = requests.get(url,verify=False).json() print locations When I run it, I kept getting requests.exceptions.SSLError: [SSL: SSLV3_ALERT_HANDSHAK...
more »

2016-11-08 17:11 (1) Answers

restful python upload file to server

I have a server running flask and some api open for client to upload file. The client is having problem when uploading big file(>100MB). At first, I tried urllib2 using the following code at client: def uploadFile(url, params, user, token): tr...
more »

2016-10-24 15:10 (0) Answers

Python requests: URL with percent character

I have been searching all over the place for this, but I couldn't solve my issue. I am using a local API to fetch some data, in that API, the wildcard is the percent character %. The URL is like so : urlReq = 'http://myApiURL?ID=something&param...
more »

2016-10-21 09:10 (4) Answers

Loading Ajax with Python Requests

For a personal project, I'm trying to get a full friends list of a user (myself for now) from Facebook using Requests and BeautifulSoup. The main friends page however displays only 20, and the rest are loaded with Ajax when you scroll down. The requ...
more »

2016-10-12 18:10 (0) Answers

Python requests to online store not checking out

I am new here so bear with me if I break the etiquette for this forum. Anyway, I've been working on a python project for a while now and I'm nearing the end but I've been dealing with the same problem for a couple of days now and I can't figure out w...
more »

2016-10-11 05:10 (0) Answers

Curl and Laravel, always redirects

I am trying to do a simple simple curl to a Laravel (5.2) app running on my machine: curl -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:7.0.1) Gecko/20100101 Firefox/7.0.1" With this result: The reque...
more »

2016-10-05 10:10 (1) Answers