[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

emacs-w3m does not properly URL-encode <FORM> GET requests.



This FORM should encode the request portion,

 <form action="http://maps.google.com.tw/maps";>

  <p>務必確認 Be sure <input type="hidden"
  name="q" value="http://jidanni.org/location/zaokeng.kmz";>
  <input type="submit" value=
  "燥坑圖 Zao Keng map">
  能於您行動裝置兼
  GPS 操作。 is operable in your GPS enabled
  mobile device!</p>
 </form>

like in all other browsers. Unfortunately it does not!

# tcpflow -i lo ......
$ find *08080 -exec grep GET.*zaok {} \; -exec grep Agent {} \;
GET http://maps.google.com.tw/maps?q=http://jidanni.org/location/zaokeng.kmz HTTP/1.0
User-Agent: Emacs-w3m/1.4.527 w3m/0.5.3+debian-15
GET http://maps.google.com.tw/maps?q=http%3A%2F%2Fjidanni.org%2Flocation%2Fzaokeng.kmz HTTP/1.1
User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
GET http://maps.google.com.tw/maps?q=http%3A%2F%2Fjidanni.org%2Flocation%2Fzaokeng.kmz HTTP/1.0
User-Agent: w3m/0.5.3+debian-15
GET http://maps.google.com.tw/maps?q=http%3A%2F%2Fjidanni.org%2Flocation%2Fzaokeng.kmz HTTP/1.0
User-Agent: Lynx/2.8.8pre.4 libwww-FM/2.14 SSL-MM/1.4.1 GNUTLS/2.12.23