首页 - 开发工具

- 在线代码运行


        
执行结果

名称:

当前代码

import urllib2
print urllib2

data="POST /RunCode/Api/sendRunCode.html HTTP/1.1\r
Host: tool.apizl.com\r
Connection: keep-alive\r
Content-Length: 236\r
Accept: application/json, text/javascript, */*; q=0.01\r
Origin: https://tool.apizl.com\r
X-Requested-With: XMLHttpRequest\r
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36\r
Content-Type: application/x-www-form-urlencoded; charset=UTF-8\r
Referer: https://tool.apizl.com/dev/runCode/53f80da51411fccf2245b5a5f14475e9.html\r
Accept-Encoding: gzip, deflate, br\r
Accept-Language: zh-CN,zh;q=0.9\r
Cookie: apizl_expire=ruue0kg56rmehe7advoj7nilu5; Hm_lvt_5c3af8dba9537e88753b3508ea2eb9fa=1545183556; UM_distinctid=167c42b27201cf-0636d7d890ec65-6313363-1fa400-167c42b272133e; CNZZDATA1253415216=1670842969-1545184423-https%253A%252F%252Ftool.apizl.com%252F%7C1545184423; Hm_lpvt_5c3af8dba9537e88753b3508ea2eb9fa=1545188213\r\n\r
code_type=python%3A2&code=import+urllib2%0Aprint+urllib2%0A%0Adata%3D%22POST+%2FRunCode%2FApi%2FsendRunCode.html+HTTP%2F1.1%5Cr%0AHost%3A+tool.apizl.com%5Cr%0AConnection%3A+keep-alive%5Cr%0AContent-Length%3A+236%5Cr%0AAccept%3A+application%2Fjson%2C+text%2Fjavascript%2C+*%2F*%3B+q%3D0.01%5Cr%0AOrigin%3A+https%3A%2F%2Ftool.apizl.com%5Cr%0AX-Requested-With%3A+XMLHttpRequest%5Cr%0AUser-Agent%3A+Mozilla%2F5.0+(Windows+NT+10.0%3B+Win64%3B+x64)+AppleWebKit%2F537.36+(KHTML%2C+like+Gecko)+Chrome%2F70.0.3538.110+Safari%2F537.36%5Cr%0AContent-Type%3A+application%2Fx-www-form-urlencoded%3B+charset%3DUTF-8%5Cr%0AReferer%3A+https%3A%2F%2Ftool.apizl.com%2Fdev%2FrunCode%2F53f80da51411fccf2245b5a5f14475e9.html%5Cr%0AAccept-Encoding%3A+gzip%2C+deflate%2C+br%5Cr%0AAccept-Language%3A+zh-CN%2Czh%3Bq%3D0.9%5Cr%0ACookie%3A+apizl_expire%3Druue0kg56rmehe7advoj7nilu5%3B+Hm_lvt_5c3af8dba9537e88753b3508ea2eb9fa%3D1545183556%3B+UM_distinctid%3D167c42b27201cf-0636d7d890ec65-6313363-1fa400-167c42b272133e%3B+CNZZDATA1253415216%3D1670842969-1545184423-https%25253A%25252F%25252Ftool.apizl.com%25252F%257C1545184423%3B+Hm_lpvt_5c3af8dba9537e88753b3508ea2eb9fa%3D1545188213%5Cr%5Cn%5Cr%0A%22%0A%0Ares+%3Durllib2.urlopen(%22https%3A%2F%2Ftool.apizl.com%2Fdev%2FrunCode%2F53f80da51411fccf2245b5a5f14475e9.html%22%2Cdata)%0A%0A%0Aprint+res.read()&name=\r
"

res =urllib2.urlopen("https://tool.apizl.com/dev/runCode/53f80da51411fccf2245b5a5f14475e9.html",data)


print res.read()

推荐工具:

工具标签:

测试

工具说明: