Google Chrome Postman RESTClient overrides the following headers when sending request to server
Ref: https://github.com/a85/POSTMan-Chrome-Extension/wiki/Postman-Proxy
Accept-Charset
Accept-Encoding
Access-Control-Request-Headers
Access-Control-Request-Method
Connection
Content-Length
Cookie
Cookie 2
Content-Transfer-Encoding
Date
Expect
Host
Keep-Alive
Origin
Referer
TE
Trailer
Transfer-Encoding
Upgrade
User-Agent
Via
Steps:
- Go to Postman settings (top right corner) and enable the Postman Proxy option
- Download this Python script - https://raw.github.com/a85/POSTMan-Chrome-Extension/master/proxy/proxy_server.py
- Make sure you have Twisted installed - http://twistedmatrix.com/trac/wiki/Downloads
- Run the proxy server using - python proxy_server.py. By default the server runs on 8000 and only works for HTTP protocols at the moment. If following error is shown
File "proxy_server.py", line 5, in <module>
from ImageFile import Parser
then comment line 5 in proxy_server.py, as a work around. This is due to unavailability of ImageFile.
When you run this script, it'll be listening on port
5. Set proxy URL "localhost:8090"(Note that if 8090 port is already used in your system, you have to choose another unused port) as the proxy inside your operating system. All HTTP calls in your OS will go through the OS so make sure you are only using it while you are testing your API.
In Mac set the Proxy URL as follows:
Apple Menu --> System Preferences --> Network --> select the connected Network (Ethernet/Wifi etc..) --> Advanced --> Proxies --> Web Proxy URL
Now enter the host name as "localhost" and port as "8090", again make sure the port is not already used.