I have faced the below error when I run any curl rest command to access the issues filter,
c:\Users\srinivasanr> curl -i -H "Content-Type: application/json" -H "Content-Type: application/json" http://<online-jira-hostname>/issues/WEB-18/
Can you please try to add "-k" to the URL? For example:
curl -k -i -u "username":"password" -X GET -H "Content-Type: application/json" https://example.atlassian.net/rest/api/2/issue/FEJHHBFHEH-99
Hi Michal,
I have tried the given command, but i got the same error message,
Command:
curl -k -i -u "username":"password" -X GET -H "Content-Type:application/json"
https://syncfusion.atlassian.net/rest/api/2/issue/WEB-18
Error message:
curl : (1) Protocol https not supported or disabled in libcurl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm.. you can try install curl with ssl support(maybe you don't have ssl installed now): http://guides.instructure.com/s/2204/m/4214/l/83393-how-do-i-install-and-use-curl-on-a-windows-machine .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello srinivasan,
can you please try changing http to https?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michal,
Thanks for replay,
i have run the below command,
C:\Users\srinivasanr> curl -i -u "username":"password" -X GET -H "Content-Type:application/json" https://syncfusion.atlassian.net/rest/api/2/issue/WEB-17
i got the issue:
Curl not support https or is disabled.
How to enable https in Curl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you Linux or Windows OS?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had exact same issue, adding "https" instead of http worked for me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please help me on this issue,
Command:
C:\Users\srinivasanr> curl -i -u "username":"password" -X GET -H "Content-Type:application/json" http://syncfusion.atlassian.net/rest/api/2/issue/WEB-17
Error Message:
HTTP:/1.1 301 Moved Permanentyl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey, it seems like you need to add the trailing "/". Not sure why this thread is marked as solved.
Further reading: https://curl.haxx.se/docs/faq.html#301_Moved_Permanently
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you! I had the same problem. Adding '/' at the end of the URI solve the problem!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had the same issue, and the -L resolved the problem. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Even I resolved my issue, with same solution. Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
below is the issue i have faced,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!
Join an Atlassian Community Event!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.