curl -X GET is reaching the server with HTTP/1.1 200 OK but not producing expected output
0
votes
0
answers
2693
views
I am using the below command:
curl -X GET 'https://.atlassian.net/rest/api/3/project/search '
This returns "header" information indicating that that command was successful:
HTTP/1.1 200 OK
However, it does not give me the search information.
If I put this in a browser:
https://.atlassian.net/rest/api/3/project/search
It DOES return the information I want.
I've looked at the documentation for the [project-search](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-search-get) API call, with its example for
curl
. I am also trying the curl
command from an API Testing Tool called Talend API. It converts my browser search into that curl
command.
I can't understand why the curl command indicates a successful connection and yet does not produce any output to the screen in a similar way to the search command I place in the browser.
Is there another way to do this perhaps, or, something obvious I am missing?
I have reviewed the man pages for curl and tried adding in an output command / file but it doesn't make the output any more verbose.
Thanks!
Asked by Scouse_Bob
(115 rep)
Apr 21, 2022, 03:44 AM
Last activity: Apr 21, 2022, 01:07 PM
Last activity: Apr 21, 2022, 01:07 PM