有没有办法将下面的curl转换成正常的http请求?与cURL用户名相同的HTTP认证:密码
curl --user <username>:<password> https://{username}.fred.sensetecnic.com/api/{custom_endpoint_name}
弄成这个样子(使用邮差的HTTP请求)
GET https://{username}.fred.sensetecnic.com/api/{custom_endpoint_name}
Headers: Username: username, Password: password
你是什么意思与 '正常的HTTP请求'?第二个片段看起来不像我见过的任何http请求。你读了:https://tools.ietf.org/html/rfc7617 – Evert
对不起,如果代码括号使它感到困惑。这不是命令行代码。我的意思是有一种使用头部的方法,而不是卷曲提供的:。 –
Delonous