postmanlabs / curl-to-postman

Converts curl requests to Postman Collection v2 request objects
Apache License 2.0
65 stars 31 forks source link

When using `--data raw` and `-H 'content-type: application/x-www-form-urlencoded; charset=UTF-8'` ,ERROR #79

Open shaofing opened 8 months ago

shaofing commented 8 months ago

image

postbody use --data-raw , content-type: application/x-www-form-urlencoded

curl 'https://testxa.360scm.com/SCM.TMS7.WebUI/OrderInfo/GetOrderInfos?defsort=CREATED_DATE%20DESC' \ -H 'accept: application/json, text/javascript, /; q=0.01' \ -H 'content-type: application/x-www-form-urlencoded; charset=UTF-8' \ -H 'cookie: SECKEY_ABVK=vXcLME3J4gfCQm3L15OdxVwb1NzZrp1tsMJWWK52Da0%3D; BMAPSECKEY=CIWetft4QxLL6PmWGbf-xHtcGx5JWfpGBEkgklHTJAKLixUJ2HdBHf05lmI2Nzgf9Oi9aBi-gafX5J3x9tkZQTsXhmr7o9HVkKGn3DPXWhh54x4P6yyDoIlaE-mobk8FbwevtXYN74xiY1ur_E0QJrC-V2UTlFSYlyKYGk1G9BwKgWZBw_vN1E6CLUOODjX; PowerTmsVersionCookie=Version%3D%2C; QuantumMap=Baidu; Lang=zh-cn; AttachmentWidgetLayout=list; cw_user_N183jFc4G3HGNidKRvKBL9xC=2059671a410d739d3d6cbd594bbf5a8f; cw_conversation=eyJhbGciOiJIUzI1NiJ9.eyJzb3VyY2VfaWQiOiI0NWUyMDczNS05MDhiLTQyMTgtOGJkZS1jMTNhMDJiM2JlNWEiLCJpbmJveF9pZCI6Mn0.i_q10GLhZoDxTD9ysM7jfcUucDwkT0SfNwUEs_S-4IU; SSID=41201fdc77e148c780c6d37086704acb; PowerTmsCookie=TmsUserID%3D498%2BwLHRG3p0cmzxuKNosg%3D%3D; Token=467ea36a-2b9e-49e0-a092-e95a593797eb; SCMToken=467ea36a-2b9e-49e0-a092-e95a593797eb' \ -H 'pragma: no-cache' \ -H 'x-requested-with: XMLHttpRequest' \ --data-raw '_search=true&nd=1708306824824&rows=20&page=1&sidx=&sord=asc&filters=%7B%22groupOp%22%3A%22AND%22%2C%22rules%22%3A%5B%7B%22field%22%3A%22CREATED_DATE%22%2C%22op%22%3A%22bw%22%2C%22data%22%3A%2223%2F11%2F21+00%3A00~*%22%7D%5D%7D' \ --compressed

image