RESTClient
RESTClient copied to clipboard
Cannot parse your pasted CURL command. Must start with curl
Here's a valid curl command that I copied after executing the GET command up top.
curl -X GET -k -H 'Accept: application/json' -H 'X-Api-Token: 69f0781a-ab7f-42a1-84d4-45c0a821af75' -i 'https://dmarc.postmarkapp.com/records/my'
Why isn't this valid if its what RESTClient created?
Hi @paulmcgee
curl -X GET -k -H 'Accept: application/json' -H 'X-Api-Token: 69f0781a-ab7f-42a1-84d4-45c0a821af75' -i 'https://dmarc.postmarkapp.com/records/my'
The command itself seems to be valid (tested here on zsh with curl 7.64.1). Here is what I got:
HTTP/1.1 401 Unauthorized
Server: nginx/1.10.1
Date: Thu, 20 May 2021 03:44:06 GMT
Content-Type: application/json;charset=utf-8
Content-Length: 32
{"message":"Invalid API token."}%
Which shell do you use? Which version of curl?
Hi all
I found problem with pasteText.textContent
. It always return <empty string>
while paste curl command, because construction document.execCommand("paste");
is deprecated/deleted from modern version of browsers.
I push pull request (#366) with small fix. And I build Firefox extension, for manual install. Download from GitHub https://github.com/GRIDARK/RESTClient/releases/tag/3.0.7.1
Ofcouse, you can build extension from my repo.