Advertisement
Guest User

Untitled

a guest
Sep 13th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. import http.client
  2. hcpConn2 = "http://xx.xxx.xxx.xxx/xxxxxx/api/ServiceCopyFile/"
  3.  
  4. metadatos = {a:1, b:2, c:3}
  5.  
  6.  
  7. conn = http.client.HTTPConnection(hcpConn2, 8080)
  8. conn.request("PUT", "/rest", metadatos)
  9. resp = conn.getresponse()
  10. print(resp.status, resp.reason)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement