SHARE
TWEET

Untitled

a guest Sep 13th, 2017 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
Pastebin PRO Autumn Special!
Get 40% OFF on Pastebin PRO accounts!
Top