全部 ApiPost使用 后端 前端 接口测试 IOS Android 数据库 程序人生 测试技术 工具
问答 / 问答详情

curl导入cookie丢失

同一个curl导入到postman有cookie,导入到apiPost时cookie丢失。

手动设置cookie的话会覆盖全局设置的cookie。

还有个小小的建议就是编辑长参数时可以跟postman一样展开

| 0 收藏

4 个回答

您这边可以将curl粘贴出来吗 ,如果不方便,您添加QQ:2184785786,

curl 'http://127.0.0.1:1111/index.php?s=/store/goods/edit/goods_id/26811' \

  -H 'Connection: keep-alive' \

  -H 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="96", "Google Chrome";v="96"' \

  -H 'Accept: application/json, text/javascript, */*; q=0.01' \

  -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \

  -H 'X-Requested-With: XMLHttpRequest' \

  -H 'sec-ch-ua-mobile: ?0' \

  -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36' \

  -H 'sec-ch-ua-platform: "Windows"' \

  -H 'Origin: http://127.0.0.1:1111' \

  -H 'Sec-Fetch-Site: same-origin' \

  -H 'Sec-Fetch-Mode: cors' \

  -H 'Sec-Fetch-Dest: empty' \

  -H 'Referer: http://127.0.0.1:1111/index.php?s=/store/goods/edit/goods_id/26811' \

  -H 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8' \

  -H 'Cookie: order=id%20desc; memSize=16322; force=0; ltd_end=-1; pro_end=-1; soft_remarks=%7B%22list%22%3A%5B%22%u4E13%u4E1A%u7248%u63D2%u4EF6%22%2C%2215%u5929%u65E0%u7406%u7531%u9000%u6B3E%22%2C%22%u53EF%u66F4%u6362IP%22%2C%22%u8D60%u90011%u5F20%u5546%u7528%u8BC1%u4E66%22%2C%22%u8D60%u9001500%u6761%u77ED%u4FE1%22%2C%22%u4F4E%u81F31.52%u5143/%u5929%22%2C%22%u5546%u7528%u9632%u706B%u5899%u6388%u6743%22%2C%22%u5E74%u4ED8%u4E13%u4E1A%u7248%u670D%u52A1%u7FA4%22%2C%22%u4EA7%u54C1%u6388%u6743%u8BC1%u4E66%22%5D%2C%22ltd_list%22%3A%5B%22%u4F01%u4E1A%u7248%u63D2%u4EF6%22%2C%22%u4E13%u4E1A%u7248%u63D2%u4EF6%22%2C%2215%u5929%u65E0%u7406%u7531%u9000%u6B3E%22%2C%22%u53EF%u66F4%u6362IP%22%2C%22%u8D60%u90012%u5F20%u5546%u7528%u8BC1%u4E66%22%2C%22%u8D60%u90011000%u6761%u77ED%u4FE1%22%2C%22%u4F4E%u81F32.43%u5143/%u5929%22%2C%22%u5546%u7528%u9632%u706B%u5899%u6388%u6743%22%2C%22%u5E74%u4ED8%u4F01%u4E1A%u7248%u670D%u52A1%u7FA4%22%2C%22%u4EA7%u54C1%u6388%u6743%u8BC1%u4E66%22%5D%2C%22kfqq%22%3A%223007255432%22%2C%22kf%22%3A%22http%3A//q.url.cn/CDfQPS%3F_type%3Dwpa%26qidian%3Dtrue%22%2C%22qun%22%3A%221%22%2C%22kf_list%22%3A%5B%7B%22qq%22%3A%223007255432%22%2C%22kf%22%3A%22http%3A//q.url.cn/CDfQPS%3F_type%3Dwpa%26qidian%3Dtrue%22%7D%2C%7B%22qq%22%3A%222927440070%22%2C%22kf%22%3A%22http%3A//wpa.qq.com/msgrd%3Fv%3D3%26uin%3D2927440070%26site%3Dqq%26menu%3Dyes%26from%3Dmessage%26isappinstalled%3D0%22%7D%5D%7D; site_table_limit=20; sites_path=D%3A/wwwroot; serverType=nginx; site_type=-1; SetName=; Path=E%3A/Desktop/Mthm-h/maintur/web; sensorsdata2015jssdkcross=%7B%22distinct_id%22%3A%2217d9ce9bc7e29f-0cd4d7955b3497-978153c-3686400-17d9ce9bc7f1160%22%2C%22first_id%22%3A%22%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22url%E7%9A%84domain%E8%A7%A3%E6%9E%90%E5%A4%B1%E8%B4%A5%22%2C%22%24latest_search_keyword%22%3A%22url%E7%9A%84domain%E8%A7%A3%E6%9E%90%E5%A4%B1%E8%B4%A5%22%2C%22%24latest_referrer%22%3A%22url%E7%9A%84domain%E8%A7%A3%E6%9E%90%E5%A4%B1%E8%B4%A5%22%7D%2C%22%24device_id%22%3A%2217d9ce9bc7e29f-0cd4d7955b3497-978153c-3686400-17d9ce9bc7f1160%22%7D; parent_qimo_sid_95e98cb0-1072-11ec-b7cf-ef159e2f1b34=8823ff20-5893-11ec-bd73-494170ae0871; backup_path=D%3A/backup; bt_user_info=%7B%22status%22%3Atrue%2C%22msg%22%3A%22%u83B7%u53D6%u6210%u529F%21%22%2C%22data%22%3A%7B%22username%22%3A%22153****7102%22%7D%7D; ChangePath=17; Hm_lvt_7d21056125bd7cf2b00af74a7d1863f7=1639463035,1639705101,1641191758,1641362494; bt_config=%7B%22webserver%22%3A%22nginx%22%2C%22sites_path%22%3A%22D%3A/wwwroot%22%2C%22backup_path%22%3A%22D%3A/backup%22%2C%22status%22%3Atrue%2C%22mysql_root%22%3A%22admin%22%2C%22email%22%3A%22admin@qq.com%22%2C%22distribution%22%3A%22Windows%2010%20Pro%20%28build%2019042%29%20x64%20%28Py3.8.6%29%22%2C%22php%22%3A%5B%7B%22setup%22%3Atrue%2C%22version%22%3A%2274%22%2C%22max%22%3A%2250%22%2C%22maxTime%22%3A0%2C%22pathinfo%22%3Atrue%2C%22status%22%3Atrue%7D%5D%2C%22mysql%22%3A%7B%22setup%22%3Afalse%2C%22status%22%3Afalse%2C%22version%22%3A%22%22%7D%2C%22sqlserver%22%3A%7B%22setup%22%3Afalse%2C%22status%22%3Afalse%2C%22version%22%3A%22%22%7D%2C%22ftp%22%3A%7B%22setup%22%3Afalse%2C%22status%22%3Afalse%2C%22version%22%3A%22%22%7D%2C%22panel%22%3A%7B%22502%22%3A%22%22%2C%22port%22%3A%228888%22%2C%22address%22%3A%22183.128.223.13%22%2C%22domain%22%3A%22%22%2C%22auto%22%3A%22%22%2C%22limitip%22%3A%22%22%2C%22templates%22%3A%5B%5D%2C%22template%22%3A%22default%22%2C%22admin_path%22%3A%22/4cIx6ikM%22%7D%2C%22systemdate%22%3A%222022-01-05%2014%3A02%3A15%22%2C%22show_workorder%22%3Atrue%2C%22isSetup%22%3Atrue%2C%22lan%22%3A%7B%22H1%22%3A%22%u9996%u9875%22%2C%22H2%22%3A%22%u7F51%u7AD9%u7BA1%u7406%22%2C%22SEARCH%22%3A%22%u7F51%u7AD9%u641C%u7D22%22%2C%22PS%22%3A%22%u4F7F%u7528%u5B9D%u5854Windows%u9762%u677F%u521B%u5EFA%u7AD9%u70B9%u65F6%u4F1A%u81EA%u52A8%u521B%u5EFA%u6743%u9650%u914D%u7F6E%uFF0C%u7EDF%u4E00%u4F7F%u7528www%u7528%u6237%u3002%22%2C%22BTN1%22%3A%22%u6DFB%u52A0%u7AD9%u70B9%22%2C%22BTN2%22%3A%22%u4FEE%u6539%u9ED8%u8BA4%u9875%22%2C%22BTN3%22%3A%22%u9ED8%u8BA4%u7AD9%u70B9%22%2C%22BTN4%22%3A%22%u5220%u9664%u9009%u4E2D%22%2C%22BTN5%22%3A%22%u5206%u7C7B%u7BA1%u7406%22%2C%22TH1%22%3A%22%u57DF%u540D%22%2C%22TH2%22%3A%22%u7F51%u7AD9%u72B6%u6001%22%2C%22TH3%22%3A%22%u5907%u4EFD%22%2C%22TH4%22%3A%22%u7F51%u7AD9%u76EE%u5F55%22%2C%22TH5%22%3A%22%u5230%u671F%u65E5%u671F%22%2C%22TH6%22%3A%22%u5907%u6CE8%22%2C%22TH7%22%3A%22%u64CD%u4F5C%22%2C%22JS1%22%3A%22%u8BF7%u5148%u5B89%u88C5Web%u670D%u52A1%u5668%21%22%2C%22JS2%22%3A%22%u53BB%u5B89%u88C5%22%7D%7D; request_token=s0PhlL227o7cHz8fSzRdPhBMhUllId5m4uOOodwQZi7UnTbC; PHPSESSID=td7hpnkd5fr7dv9rbm48qrbpi0' \

  --data-raw 'goods%5Bgoods_name%5D=78&goods%5Bcategory_id%5D=10007&goods%5Bspace_ids%5D%5B%5D=10&goods%5Bspace_ids%5D%5B%5D=12&goods%5Bspace_ids%5D%5B%5D=13&goods%5Bimages%5D%5B%5D=13473&goods%5Bselling_point%5D=&goods%5Bspec_type%5D=10&goods%5Bsku%5D%5Bgoods_no%5D=54&goods%5Bsku%5D%5Bgoods_price%5D=54.00&goods%5Bsku%5D%5Bline_price%5D=45.00&goods%5Bsku%5D%5Bfactory_price%5D=45.00&goods%5Bsku%5D%5Bdeposit_price%5D=45.00&goods%5Bsku%5D%5Bstock_num%5D=45&goods%5Bsku%5D%5Bgoods_size%5D=&goods%5Bsku%5D%5Bmain_texture%5D=&goods%5Bsku%5D%5Bsurface_craft%5D=&goods%5Bsku%5D%5Bsoft_package%5D=&goods%5Bdeduct_stock_type%5D=20&goods%5Bcontent%5D=%3Cp%3E45%3C%2Fp%3E&goods%5Bdeal_type%5D=20&goods%5Bdelivery_id%5D=10002&goods%5Bgoods_status%5D=10&goods%5Bsales_initial%5D=0&goods%5Bgoods_sort%5D=100&goods%5Bis_points_gift%5D=1&goods%5Bis_points_discount%5D=1&goods%5Bis_enable_grade%5D=1&goods%5Bis_alone_grade%5D=0&goods%5Balone_grade_equity%5D%5B10001%5D=&goods%5Balone_grade_equity%5D%5B10002%5D=&goods%5Balone_grade_equity%5D%5B10003%5D=&goods%5Balone_grade_equity%5D%5B10004%5D=&goods%5Balone_grade_equity%5D%5B10005%5D=&goods%5Bis_ind_dealer%5D=0&goods%5Bdealer_money_type%5D=10&goods%5Bfirst_money%5D=0.00&goods%5Bsecond_money%5D=0.00&goods%5Bthird_money%5D=0.00' \

  --compressed

请问这个问题解决了么

  • Ruert
  • 2022-01-18 回答

我们会在新版本中优化此问题

中文版Postman,rap文档管理

撰写答案

只服务于

前后端、移动端、测试人员

提问题 发布您遇到的Bug和问题,上万名大牛和开发者来帮您解决!