各位大佬中午好,小弟有一个HTTP请求的问题。
对应curl为
curl --location --request POST 'https://api.2dcode.biz/v1/read-qr-code' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Accept: */*' \
--header 'Host: api.2dcode.biz' \
--header 'Connection: keep-alive' \
--header 'Content-Type: multipart/form-data; boundary=--------------------------470775597187419761489094' \
--form 'file=@"C:\\Users\\LucasYan\\Desktop\\微信图片_20251029104257_4432_27.png"'

我创建的HTTP动作如上
看起来请求体需要为file: 文件地址
但是对应的语法如何写呢?