How to solve - 301 moved permanently HTTP response code

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/

4 answers

1 accepted

This widget could not be displayed.

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"

Hi Michal,

I have tried the given command, but i got the same error message,


curl -k -i -u "username":"password" -X GET -H "Content-Type:application/json"

Error message:

curl : (1) Protocol https not supported or disabled in libcurl

Hmm.. you can try install curl with ssl support(maybe you don't have ssl installed now): .

This widget could not be displayed.

Hello srinivasan,

can you please try changing http to https?

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"

i got the issue:

Curl not support https or is disabled.

How to enable https in Curl

Have you Linux or Windows OS?

I had exact same issue, adding "https" instead of http worked for me

This widget could not be displayed.

below is the issue i have faced,

This widget could not be displayed.


Please help me on this issue,


C:\Users\srinivasanr> curl -i -u "username":"password" -X GET -H "Content-Type:application/json"

Error Message:

HTTP:/1.1 301 Moved Permanentyl

Hey, it seems like you need to add the trailing "/".  Not sure why this thread is marked as solved.

Further reading:

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

139 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you