Open url from a POST request. Simple Python script that fires a URL from a POST request to the server computer.
- Python 2.x
- Computer running Linux, Windows, Mac with any browsers
Start fireURL with one of the followings:
python fireURL.py # Will start fireURL on default port 8000or
python fireURL.py 6073 # Will start fireURL on port 6073.Send a POST request to the running server. Using curl in this example.
curl --data "url=https://google.com" 192.168.1.x.x:8000If you are not using curl, make sure you format the data-form as followings:
{
"url": "https://google.com"
}Starting from version 0.3, GET requests will also be supported. Usage as following:
URL format:
GET http://SERVER_ADDR:PORT/?url=URL_TO_BE_FIRED
Example using curl:
curl http://192.168.x.x/?url=http://facebook.comThe protocol of the URL can be omitted, fireURL will automatically prepend http:// in front. For example:
{
"url": "google.com"
}will automatically be interpreted as url="http://google.com".
Server computer will now show up a new browser window. Enjoy!
