Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot parse your pasted CURL command. Must start with curl #354

Open
paulmcgee opened this issue May 20, 2021 · 2 comments
Open

Cannot parse your pasted CURL command. Must start with curl #354

paulmcgee opened this issue May 20, 2021 · 2 comments

Comments

@paulmcgee
Copy link

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?

@benel
Copy link
Collaborator

benel commented May 20, 2021

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?

GRIDARK pushed a commit to GRIDARK/RESTClient that referenced this issue Aug 30, 2023
- Add new way to read clipboard content
@GRIDARK
Copy link

GRIDARK commented Aug 30, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants