版权声明:本文为博主原创文章,未经博主允许不得转载。<?phpheader('Content-type:text/html;Charset=utf-8');$user='lee';//登陆用户名$pass='123456';//登陆密码$va_url='http://localhost/valida...
分类:
Web程序 时间:
2015-11-22 23:10:43
阅读次数:
249
php编程中会用到xml格式传送数据,这里演示下php以post形式发送xml,服务器接收,并解析xml的过程!post_xml.php源码: 1 11 12 张三13 2214 15 xml;16 //初始化curl会话17 $ch ...
分类:
Web程序 时间:
2015-11-20 17:37:23
阅读次数:
229
'tanteng' // 'password' => 'password');$ch = curl_init ();// print_r($ch);curl_setopt ( $ch, CURLOPT_URL, $uri );curl_setopt ( $ch, CURLOPT_POST, 1 )....
分类:
Web程序 时间:
2015-11-18 19:28:23
阅读次数:
148
php模拟post提交数据,用处很多, array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded' . ...
分类:
Web程序 时间:
2015-10-19 17:10:01
阅读次数:
228
<? header("Content-type: text/html; charset=utf8"); /* ?* 提交请求 * @param $header array 需要配置的域名等header设置 array("Host: devzc.com"); * @param $data string 需要提交的数据 ‘user=xxx&qq=xxx...
分类:
Web程序 时间:
2015-09-19 11:06:34
阅读次数:
201
写在前面最近对文档库的知识点进行了整理,也就有了这篇文章,当时查找这些接口,并用在实践中,确实废了一些功夫,也为了让更多的人走更少的弯路。系列文章sharepoint环境安装过程中几点需要注意的地方Rest API的简单应用rest api方式实现对文档库的管理通过WebClient模拟post上传...
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.URL;
import java.net.URLConnection;
import java.util.List...
分类:
编程语言 时间:
2015-08-27 18:42:35
阅读次数:
179
Python版本2.7.9模拟POST请求 1 #coding:u8 2 import urllib 3 import urllib2 4 5 url = u"http://192.168.84.182:8000/Home/GetTheme" 6 params = urllib.urlencode....
分类:
编程语言 时间:
2015-08-13 17:41:41
阅读次数:
267
'error', 'error' => "$errstr ($errno)" ); } // close the socket connection: fclose ( $fp ); // split the result header from the conten...
分类:
Web程序 时间:
2015-08-04 15:36:22
阅读次数:
144
由于项目需要,需要本地服务器接收数据后,再将数据转发到另外一台服务器上,故要用到模拟post请求发送数据,当然数据中也包含文件流。
curl是php比较常用的方式之一,一般代码如下:
$params1 = "test";
$params2 = "@".$absolute_path;//如果是文件 则参数为"@"+绝对路径
$post_data = array(
'params1' => ...
分类:
Web程序 时间:
2015-08-03 22:42:08
阅读次数:
195