-
Notifications
You must be signed in to change notification settings - Fork 0
/
send_GET.py
12 lines (7 loc) · 1.19 KB
/
send_GET.py
1
2
3
4
5
6
7
8
9
10
11
12
import urllib2
sample = "141,562.75,-0.25,0.353553390593,-0.707106781187,0.5,0.0,0.0,1.0,0.0,-0.707106781187,-0.707106781187,-0.707106781187,0.707106781187,-0.707106781187,0.707106781187,-0.707106781187;140,562.5,0.0,-0.353553390593,0.353553390593,0.0,-0.5,-1.5,0.0,0.707106781187,0.707106781187,0.707106781187,0.0,0.0,-0.707106781187,0.707106781187,0.707106781187;141,562.5,-0.5,0.0,0.707106781187,0.0,0.0,-1.0,0.0,-0.707106781187,-0.707106781187,-0.707106781187,0.707106781187,-0.707106781187,0.707106781187,-0.707106781187,-0.707106781187;141,562.75,-0.75,0.0,0.353553390593,0.0,1.0,1.0,-0.5,0.707106781187,0.707106781187,0.0,0.0,-0.707106781187,0.707106781187,0.707106781187,0.0;140,562.5,-0.5,0.0,0.707106781187,0.0,0.0,1.0,0.0,-0.707106781187,-0.707106781187,0.707106781187,-0.707106781187,0.707106781187,-0.707106781187,-0.707106781187,0.707106781187;140,562.5,0.5,0.0,0.0,-0.5,-1.5,0.0,1.0,0.707106781187,0.0,0.0,-0.707106781187,0.707106781187,0.707106781187,0.0,0.0"
#f = urllib2.urlopen("http://127.0.0.1:8000/?data1=237&data2=126&data3=abc")
f = urllib2.urlopen("http://127.0.0.1:8000/?data=" + sample)
for line in f.readlines():
print line.rstrip()
#urllib2.urlopen("http://127.0.0.1:8000/").read()