From: Steve G. <st...@fa...> - 2005-12-12 18:47:22
|
I have a problem with the weather_graph_zoom script that I can't figure out. The problem seems to be browser related but it also is mh version related. Here's what happens, if I bring up weather zoom the first time it is ok. However if I change a parameter and hit the zoom button the script blows up. The reason the script blows up is that it appears the the CGI parsing never happens so the script sees the form as the param data, e.g. you can see in the http server log: bin/weather_graph_zoom.pl ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="sensor1" tempspare5 -------- ----0xKhTmLbOuNdArY Content-Disposition: form-data; name="sensor2" nosensor ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="width" 600 ---- --------0xKhTmLbOuNdArY Content-Disposition: form-data; name="height" 250 ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="debmonth" 12 ---- --------0xKhTmLbOuNdArY Content-Disposition: form-data; name="debday" 11 ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="debyear" 2005 ---- --------0xKhTmLbOuNdArY Content-Disposition: form-data; name="endmonth" 12 ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="endday" 12 ----- -------0xKhTmLbOuNdArY Content-Disposition: form-data; name="endyear" 2005 ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="submit" Zoom... ------------0xKhTmLbOuNdArY-- rather than something like: /bin/weather_graph_zoom.pl sensor1=tempspare5&sensor2=nosensor&width=600&height=250&debmonth=12&debday=11&debyear=2005&en dmonth=12&endday=12&endyear=2005&submit=Zoom... This happens if use Safari as my browser (mh 2.100 is not running on the mac). If I use firefox from the mac then weather zoom script works normally. Now the strange thing is that if I use Safari to connect to a different machine running mh 2.96 then Safari works fine but to the machine running mh 2.100 it fails. So I turned on http debugging and there is more strange behavior but probably the bigger clue. When I run Safari to the machine that fails I see in the log: Mon 12/12/05 13:20:49 POST /bin/weather_graph_zoom.pl HTTP/1.1 data:POST /bin/weather_graph_zoom.pl HTTP/1.1 Host: wiz:7070 Connection: close Referer: http: //wiz:7070/bin/weather_graph_zoom.pl User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.5.1 (KHTML, like Gecko) Safari/312.3.1 Accept: */* Accept-Encoding: gzip, deflate Accept-Language: en Content-Type: multipart/form-data; boundary=----------0xKhTmLbOuNdArY Content-Length: 965 Now what seems to be a clue is that when I use firefox to connect to the mh 2.100 machine I never see POST in the log. I don't see why Safari is doing a POST. Interestingly if I use Safari to connect to the mh 2.96 machine I don't see POST but only GET. I'm sure I could figure this out given sufficient time but since there seem to be plenty of people on this list with lots of http and cgi experience I'm hoping they can point out what is going wrong here and how to fix it. Thanks. -- Steve |