Hi there,
I'm still using w3m/0.1.10 under Solaris2.6. I'm sometimes having
problems using certain forms.
E.g. I use http://rpmfind.net/linux/RPM/ to search for certain things
(binaries). There's a corresponding "FORM" on that page:
--snip--
<form action="http://rpmfind.net/linux/rpm2html/search.php?query="
enctype="application/x-www-form-urlencoded" method="GET">
<input name="query" type="TEXT" size="40" value="">
<input name=submit type=submit value="Search ...">
</form>
--snip--
Using this form, w3m makes a request called:
http://rpmfind.net/linux/rpm2html/search.php?query=?query=libXaw.so.7&submit=Search+...
which doesn't work on the remote server side, because it thinks I'm
searching for "?query=libXaw.so.7".
Netscape on the other hand constructs this request:
http://rpmfind.net/linux/rpm2html/search.php?query=libXaw.so.7&submit=Search+...
I guess the form is written crappy (I guess that should read
"crappily", but that sounds crappy):
- I wouldn't append "?query=" to the queried page in the FORM tag, the
browser will do that anyway
- something's wrong with the SUBMIT thingy, I've never seen that
content being transferred to the server before - but my Netscape
seems to do it as well ;-)
What does the HTTP spec say? Why does it work with Netscape?
Greetings,
Moritz.
This archive was generated by hypermail 2b29 : Mon Dec 18 2000 - 08:41:59 CST