Hi guys,
At the camping site I work for, we have a device that controls the temperature, pH, chlorine, and bromine levels of the swimming pool, and I would like to get this information to keep my own records, display the values on a screen, etc. To get this information, I connect to the machine with a simple request at its IP (something like 192.x.x.x/bin/cgi/xml_info?xml_id=30004) and I get my information in xml-format.
Now I want access from outside of the camping, so therefore we have an external URL. The trouble is that this URL only works with Firefox, and here the raw xml is displayed correctly. But going to the same address in Chrome returns a "connection denied" error, and using request.get in Python (which is what I mostly would like to get working) or curl also result in errors.
After searching, we believe this is because old TLS/SSL is not allowed anymore (usually for the good). We are sure the URL is correct, as it works in Firefox from outside of the camping.
Is there any way to do this with the requests module, or any other if that matters? I have tried already with adding verify=False in the request, but no cigar. Any help is greatly appreciated.
Meanwhile, a fantastic New Year with lots of Pi's is wished to you!
At the camping site I work for, we have a device that controls the temperature, pH, chlorine, and bromine levels of the swimming pool, and I would like to get this information to keep my own records, display the values on a screen, etc. To get this information, I connect to the machine with a simple request at its IP (something like 192.x.x.x/bin/cgi/xml_info?xml_id=30004) and I get my information in xml-format.
Now I want access from outside of the camping, so therefore we have an external URL. The trouble is that this URL only works with Firefox, and here the raw xml is displayed correctly. But going to the same address in Chrome returns a "connection denied" error, and using request.get in Python (which is what I mostly would like to get working) or curl also result in errors.
After searching, we believe this is because old TLS/SSL is not allowed anymore (usually for the good). We are sure the URL is correct, as it works in Firefox from outside of the camping.
Is there any way to do this with the requests module, or any other if that matters? I have tried already with adding verify=False in the request, but no cigar. Any help is greatly appreciated.
Meanwhile, a fantastic New Year with lots of Pi's is wished to you!
Statistics: Posted by kheylen25 — Tue Dec 31, 2024 4:47 pm — Replies 5 — Views 73