Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- query = "skipPDB=TRUE£€£€format=seq£€£€email=TRUE£€£€name=seq£€£€>querynMATPHDE"
- print(query.encode("utf-8"))
- HOST = "http://www.compbio.dundee.ac.uk/jpred4/cgi-bin/rest"
- result = requests.post("{}/{}".format(HOST, "job"), data=query.encode("utf-8"), headers={"Content-type": "text/txt"})
- query <- "skipPDB=TRUExc2xa3xe2x82xacxc2xa3xe2x82xacformat=seqxc2xa3xe2x82xacxc2xa3xe2x82xacemail=TRUExc2xa3xe2x82xacxc2xa3xe2x82xacname=seqxc2xa3xe2x82xacxc2xa3xe2x82xac>querynMATPHDE"
- response <- httr::POST(url=paste(host, "job", sep="/"), body = query)
- Response [http://www.compbio.dundee.ac.uk/jpred4/cgi-bin/rest/job]
- Date: 2018-06-18 15:28
- Status: 415
- Content-Type: text/html; charset=ISO-8859-1
- Size: 82 B
Add Comment
Please, Sign In to add comment