curl -c cookie.txt http://local.o.me/wx661c1bed18ad67c4/Public/Api/Debug/Login/SetCookie?uid=B49E28947F0000017E098EB7E6A22CB0&_identifier=ff
curl -X POST -b c2.txt
--header 'Content-Type: application/json'
--header 'Accept: application/json'
--data '{"pool_id":"26"}'
http://local.o.me/wx661c1bed18ad67c4/GoodsLibrary/Api/Pool/Category
/*curl的时候加入下面语句处理cookie的传递*/curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt ') //保存cookie
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt ') //读取cookie
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)