浏览器是怎样处理表单的?
浏览器是怎样分析识别表单的各个元素,然后确定发送的题头和内容的?
比如这个表单提交的数据包:
POST /account/edit_reg.htm HTTP/1.1Host: www.eceurope.comUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; zh-CN; rv:1.9b5) Gecko/2008032620 Firefox/3.0b5Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language: zh-cn,zh;q=0.5Accept-Encoding: gzip,deflateAccept-Charset: gb2312,utf-8;q=0.7,*;q=0.7Keep-Alive: 300Connection: keep-aliveReferer: http://www.eceurope.com/account/edit_reg.htm?session=&Cookie: referrer=http%3A%2F%2Fwww.b2b99.com%2Fworldb2b.htm; test=1; __utma=201624837.37668972.1209714802; __utmb=201624837; __utmc=2016248; __utmz=201624837.1.1.utmccn=(referral)|utmcsr=b2b99.com|utmcct=/worldb2b.htm|utmcmd=referralContent-Type: application/x-www-form-urlencodedContent-Length: 292session=&email=wang%40gmail.com&password=666666&passwordconfirm=666666&&name=kevincity=beijing&country=CN&fax=&url=&partner_share=Yes&terms=yes&submit=Proceed