From cc7fcec7ea718777f41154a107bdf8c709ed968a Mon Sep 17 00:00:00 2001 From: yo mama Date: Thu, 24 Sep 2015 18:38:13 -0700 Subject: ok set up for deployment with cherrypy --- examples/break.py | 2 +- examples/grid.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 examples/grid.sh (limited to 'examples') diff --git a/examples/break.py b/examples/break.py index 6f0c710..91d888d 100644 --- a/examples/break.py +++ b/examples/break.py @@ -1,7 +1,7 @@ #!/usr/bin/python2.7 import requests, sys import simplejson as json -URL_BASE = "http://127.0.0.1:5000" +URL_BASE = "http://127.0.0.1:8080" example_params = { "url" : "http://i.asdf.us/im/de/HolyMountain2_1322275112_seamonkey.gif", diff --git a/examples/grid.sh b/examples/grid.sh new file mode 100644 index 0000000..da5fe41 --- /dev/null +++ b/examples/grid.sh @@ -0,0 +1 @@ +curl localhost:8889/imgrid -H 'Cookie: imname=pepper' -H 'Origin: http://asdf.us' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.125 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Accept: */*' -H 'Referer: http://asdf.us/imgrid/' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' --data 'width=700&height=500&linethickness=1&opacity=1&linecolor=MISTYROSE4&spacing=10&vlines=false&hlines=false&shadow=false&bgimage=&bgcolor=transparent&imageinstead=&planebgcolor=transparent&skycolor=none&planebgimage=&transition=background&swing=0&tilt=0&roll=0&zoom=0&trim=false&format=&username=pepper' --compressed -- cgit v1.2.3-70-g09d2