http post文件 ?? <input type="file" name="uploadfiles[]"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不好意思,是我没说清楚.是通过HTTP接口,将多个文件从一台服务器POST到另一台服务器 是对方提供HTTP接口,我以POST的方式上传log文件 那个文件下载过去不行了如果你要用post过去要发送头信息Content-Type application/x-www-form-urlencdoed <form action="对方的接口文件.php" method="post" enctype="multipart/form-data" name="form1" target="_blank" id="form1"> <input name="upfile[]" type="file" id="upfile[]" /> <input name="upfile[]" type="file" id="upfile[]" /> <button type="submit">表单提交</button></form>这样吧? 我想你的意思是不是用php程序在后台模拟http请求post文件到指定server?可以用socket相关函数实现只是在构造http请求包时,需要注意一些地方比如Content-Type: multipart/form-data; boundary=.....,以及具体的content,如:Content-Disposition: form-data; name="..."; filename="..."Content-Type: text/plain具体的可以看看http协议中上传文件的说明 ajax 输出是【object object] 缓存文件遇到难题了 用户已经登录,但flash 上传时,服务器提示未登录!!!!!!!!!! 怎样读取一个不在web目录下的图片文件? 求js 日期时间控件 IIS 5.0 连接超时默认是 900 秒啊,怎么连一分钟都没就自己销毁了。 问个简单又复杂的问题 奇怪的错误(可以去掉session测试一下)大分相送。答对者在送100 PHP判断后返回当前页面的问题 php1中如何获取php2的echo的json串? 大家看看这个错误提示是怎么回事? 请问如何从字符串中单单提取数字和字母?
是通过HTTP接口,将多个文件从一台服务器POST到另一台服务器
如果你要用post过去要发送头信息
Content-Type application/x-www-form-urlencdoed
<input name="upfile[]" type="file" id="upfile[]" />
<input name="upfile[]" type="file" id="upfile[]" />
<button type="submit">表单提交</button>
</form>这样吧?
可以用socket相关函数实现
只是在构造http请求包时,需要注意一些地方
比如Content-Type: multipart/form-data; boundary=.....,
以及具体的content,如:
Content-Disposition: form-data; name="..."; filename="..."
Content-Type: text/plain
具体的可以看看http协议中上传文件的说明