我從郵遞員那里提取 Curl,但沒有按以下方式作業:
curl --insecure --location --request POST "https://172.25.128.114/api/iban/term/list " --header 'Accept: application/json' --header 'X-Forwarded-For: 81.12.112.243' --header 'Authorization: Basic a2FzaGVmdXNlcjpFbmVhbWlAMTIzNDU=' --header 'Content-Type: application/json' --header 'Cookie: JSESSIONID=B10D83AE3D70741D637BA3C2E3F1FB24' --data-raw '{ "iban":"IR220540202902540062587008","page" : 1 }'


uj5u.com熱心網友回復:
單引號改為雙引號后問題解決(postman通過單引號生成錯誤的curl)
curl -k --location --request POST "https://172.25.128.114/api/iban/term/list " --header "Accept: application/json" --header "X-Forwarded-For: 81.12.112.243" --header "Authorization: Basic a2FzaGVmdXNlcjpFbmVhbWlAMTIzNDU=" --header "Content-Type: application/json" --data-raw "{ "iban":"IR220540202902540062587008","page" : 1 }"
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/321188.html
