Hello I hope you are well,
I have problems uploading a document to HCP (Hitachi)
this is the code that I'm occupying
import http.client
projectName = "Prueba"
hcpConn = ".prueba.local.mex"
headers = {'Authorization': 'HCP ZONud4M=:85e704e0f59a51b987f06485b5f90948'}
h = http.client.HTTPConnection(projectName + hcpConn)
_pt = "C:\Python.pdf"
h.request('PUT', "/rest" + _pt, headers=headers)
at the moment of executing it, the following error appears
File "C: \ Users \ mxe01508121A \ AppData \ Local \ Programs \ Python \ Python36-32 \ lib \ socket.py", line 743, in getaddrinfo for res in _socket.getaddrinfo (host, port, family, type, proto, flags): socket.gaierror: [Errno 11004] getaddrinfo failed
I hope you can help me. Greetings!