推荐

2011年11月3日

使用curl post数据CURLOPT_POSTFIELDS字符串和array的不同

摘要: curl CURLOPT_POSTFIELDS,可以填入字符串,数组,@文件地址 今天用到这个,发现一个问题,如果使用array, Content-Type会被赋值为multipart/form-dataCURLOPT_POSTFIELDS: The full data to post in a HTTP “POST” operation. To post a file, prepend a filename with @ and use the full path. This can either be passed as a urlencoded string like ‘para1=va 阅读全文

posted @ 2011-11-03 14:36 高华 阅读(1579) 评论(0) 推荐(0) 编辑

导航