0

I have a request object which has a header and some query parameters.

I can get the headers parameters like this:

request.headers.get('content-type')

How can I get the value for query parameter "Subject" in Python?

For example: http://localhost:5000/api?Subject=Test

I'm using Flask (flask.pocoo.org) for the servers and Requests (docs.python-requests.org/en/master) for the client.

CubeJockey
  • 2,209
  • 8
  • 24
  • 31
Cute_Ninja
  • 4,742
  • 4
  • 39
  • 63
  • You haven't given nearly enough information. Python itself does not know anything about receiving web requests, so you must be using some kind of framework. Which? – Daniel Roseman Feb 18 '16 at 21:19
  • http://flask.pocoo.org/ Flask for the servers http://docs.python-requests.org/en/master/ Requests for the client – Cute_Ninja Feb 18 '16 at 21:30

0 Answers0