当前位置:编程学习 > C#/ASP.NET >>

Http Header问题

高手讲解一下下面两种格式的Header有什么区别
GET /view.jsp HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0
Host: localhost
uid=1&pwd=123 --------------------编程问答-------------------- 第二种
GET /view.jsp?uid=1&pwd=123 HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0
Host: localhost
--------------------编程问答-------------------- 用GET方式的话,第一种,你是得不到GET变量的.

--------------------编程问答-------------------- 第一种将参数uid和pwd传过去了,第二种没有传递参数。得到的Response信息应该有所不同。 --------------------编程问答-------------------- HTML里有URL和FROM两种方式:第一种不应该是GET而是POST参数才能提交.第二种是GET方式
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,