Hi I have an apache server, which has a php code. from that php code I am calling python script to turn on the led. When I request the address from the web browser, it works fine, but when I request it from my office panel, it doesnt work. I can not do any changes to my office panel. from wireshark files I have observed that http request is different. When I request from web browser it request with host info,connection type, cache control. but when I request it from panel it doesnt have host info cache control and connection type. I am new to networking world. Please help me out
asked 31 Jul '14, 03:53
here are some thoughts.
Apparently the request generated by your 'office panel' (what is that?), does not work, because there is either something missing (you mentioned the Host: header), or the request is broken in another way (wrong headers, wrong request, etc.).
If the Host: header is missing, and Apache won't know how to process the request (depends on the apache configuration), as the Host: header helps Apache to identify the virtual host configuration. So, that's most likely the problem. Please ask your local Apache guru how to configure Apache in a way to accept the request without Host: header and to process it within the virtual host config that hosts your PHP code. However: If your PHP code is hosted on a rented multi-domain server, that won't be possible! In that case, you'l have to fix your 'office panel'.
Well, then there is no solution for you, other than configuring the web server, as I said above.
answered 31 Jul '14, 23:55
Kurt Knochner ♦