I have attempted to perform this task against my AE machine in network and only get the following:
ConnectionError Traceback (most recent call last)
<ipython-input-43-60702b44d25b> in <module>() 7 args = { 'OPERATION_NAME': 'add', 'TECHNICIAN_KEY': tech_key, 'INPUT_DATA': xml_content } 8 #args = { 'OPERATION_NAME': 'add', 'TECHNICIAN_KEY': demo_key, 'INPUT_DATA': xml_content } ----> 9 r = requests.post(url, params = args, verify = False) 10 #r = requests.post(url, params = args) 11 #print r.url /usr/lib/python2.7/site-packages/requests/api.pyc in post(url, data, json, **kwargs) 106 """ 107 --> 108 return request('post', url, data=data, json=json, **kwargs) 109 110 /usr/lib/python2.7/site-packages/requests/api.pyc in request(method, url, **kwargs) 48 49 session = sessions.Session() ---> 50 response = session.request(method=method, url=url, **kwargs) 51 # By explicitly closing the session, we avoid leaving sockets open which 52 # can trigger a ResourceWarning in some cases, and look like a memory leak /usr/lib/python2.7/site-packages/requests/sessions.pyc in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 462 } 463 send_kwargs.update(settings) --> 464 resp = self.send(prep, **send_kwargs) 465 466 return resp /usr/lib/python2.7/site-packages/requests/sessions.pyc in send(self, request, **kwargs) 574 575 # Send the request --> 576 r = adapter.send(request, **kwargs) 577 578 # Total elapsed time of the request (approximately) /usr/lib/python2.7/site-packages/requests/adapters.pyc in send(self, request, stream, timeout, verify, cert, proxies) 413 414 except (ProtocolError, socket.error) as err: --> 415 raise ConnectionError(err, request=request) 416 417 except MaxRetryError as e: ConnectionError: ('Connection aborted.', BadStatusLine("''",))
When I attempt to perform the same call to your demo site I get the following:
<HTML><HEAD> <TITLE>Network Error</TITLE> </HEAD> <BODY> <FONT face="Helvetica"> <big><strong></strong></big><BR> </FONT> <blockquote> <TABLE border=0 cellPadding=1 width="80%"> <TR><TD> <FONT face="Helvetica"> <big>Network Error (tcp_error)</big> <BR> <BR> </FONT> </TD></TR> <TR><TD> <FONT face="Helvetica"> A communication error occurred: "" </FONT> </TD></TR> <TR><TD> <FONT face="Helvetica"> The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time. </FONT> </TD></TR> <TR><TD> <FONT face="Helvetica" SIZE=2> <BR> For assistance, contact your network support team. </FONT> </TD></TR> </TABLE> </blockquote> </FONT> </BODY></HTML>