Guest User

Untitled

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