转自:http://www.cppblog.com/woaidongmao/archive/2008/05/29/51476.aspx http post和GET的区别 1、http 只有post和GET 两种命令模式; 2、post是被设计用来向上放东西的,而GET是被设计用来从服务器取东西的,GET也能够向服务器传送较少的数据,而Get之所以也能传送数据,只是用来设计告诉服务器,你到底需要什么样的数据.post的信息作为http 请求的内容,而GET是在http 头部传输的; 3、post与GET在http 中传送的方式不同,GE...
by iceway - 网络技术文档中心 - 2008-09-18 16:02:06 阅读(1057) 回复(0)
public void postData() { // Create a new httpClient and post Header httpClient httpclient = new DefaulthttpClient(); httppost httppost = new httppost("http://www.yoursite.com/script.php"); try { // Add your data List nameValuePairs = new ArrayList(2); nameValuePairs.add(new BasicNameValuePair("id", "12345")); nameValuePairs.add(new BasicNam...
一、http-GET和http-post http-GET和http-post是使用http的标准协议动词,用于编码和传送变量名/变量值 对参数,并且使用相关的请求语义。每个http-GET和http-post都由一系列http请求头 组成,这些请求头定义了客户端从服务器请求了什么,而响应则是由一系列http应答头和应答 数据组成,如果请求成功则返回应答。 http-GET以使用MIME类型application/x-www-form-urlencoded的 urlencoded文本的格式传递参数。Urlencoding是...
[code] [http_post_VARS] => Array ( [cb] => Array ( [1] => 1 [2] => 2 [3] => 3 [4] => 4 ) ) [_post] => Array ( [cb] => ) [/code] 靠
my $URL = 'http://www.baidu.com/'; my $res = LWP::UserAgent->new->request(new http::Request GET=>$URL); print header,$res->content; 如上所示,用GET方式传值还是这里的GET另有其他意思。 http::Request里的post传值是如何传递的饿。。。 会请写几句代码举个例子,伪代码也好,谢谢。
有一个ASP的页面 我用工具把发出去的包的字符提取出来 然用用C写了个SOCKET连接 手动把请求发出去 得到的是400 BAD REQUEST 我不明白是什么原因 那个系统要登录的 我在网页上登录了 是不是程序发请求时服务器是不承认登录的? 这些是发送的请求 post /XK/Enroll.aspx http/1.1 Host: ***.***.***.***:100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080129 Iceweasel/2.0.0.12 (Debian-2.0.0....
IBM http server http://www-306.ibm.com/software/webservers/httpservers/prereq.html 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/54041/showart_1089777.html
1.有时间就来研究研究python中的lib包下面的所有模块代码,写得相当有水平的! 实现一个简单的http服务器 #Copyright Jon Berg , turtlemeat.com import string,cgi,time from os import curdir, sep from Basehttpserver import BasehttpRequestHandler, httpserver #import pri class MyHandler(BasehttpRequestHandler): def do_GET(self): try: if self.path.endswith(".html"): f = ...