Open lake-effect opened 4 years ago
Drop the quotes, no need for them
Which ones?
in here :url-stem = "http://secret-url.com/"
Same result:
# -*- mode: restclient ~*~
:url-stem = http://secret-url.com/
:user = user
:pw = password
:creds := (format "Basic %s" (base64-encode-string (format "%s:%s" ":user" ":pw")))
# Add number to pool
POST :url-stem/endpoint
Content-Type: application/json
Authorization: :creds
[
"entry"
]
curl -i -H Authorization\:\ Basic\ OnVzZXI6OnB3 -H Content-Type\:\ application/json -XPOST http\://secret-url.com//endpoint -d \['
'\ \ \"entry\"'
'\]'
'
curl: (6) Could not resolve host: secret-url.com
Any news?
I keep getting Unauthorized when I try a request with basic auth in restclient-mode, so I exported it to curl with
C-c C-u
, and got a very elaborately escaped command:Initial curl request:
restclient:
Exported curl request:
Curl of course throws
curl: (6) Could not resolve host: "http