Closed roncoejr closed 5 years ago
Forgot to attach an image of the output that I see in HomeBridge:
Probably also useful to see an example of the URLs that I use (note that I have since changed to the 'stateless' switch type and get the same result):
Disregard. I must have been up too late trying to get this one resolved. Fresh perspective this morning yields progress.
I didn’t had time to get my head behind your problem. Did you solve your issue? Any further help needed?
I didn’t had time to get my head behind your problem. Did you solve your issue? Any further help needed?
No worries at all. I'm making progress. Though, I wonder: should a UrlObj configured as a post request work, or are we limited to GET requests?
Greetings,
First let me say thank you for the creation of such a well thought out solution. I'm certain that my issue is relative to something that I've misunderstood.
I've written a basic server using the Python 3.5 http.server module. This server is configured to respond to GET and POST requests. For testing outside of HomeKit I've written a tool in PHP that successfully demonstrates the intended use of the Python based server. Observing packet captures when the test tools are used reveals that the POST is about 36 bytes in length.
Observing packet captures when attempting to use the homebridge-http-switch reveals that the POST is 0 bytes in length.
I'd be most grateful for your thoughts as to what might be the cause.
Thank you, again.
Packet Capture for http-switch communication:
Packet Capture for test Utility:
Output of the http.server module running my basic Python server: