The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Rest api call to attachment is not returning the content in the attachment

Vijay Pinnapu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 29, 2016

The call i am using is 

https://cnwyjira.atlassian.net/secure/attachment/105028/Unix_migration_check_test.param.

 

When i copy/paste the link in url, i get the attachment with content in it. However, when i make call using that url on linux using CURL, it return nothing. Below is the call and output.

 

[infv9adm@cdcxvd1442 Migration]$ curl -f -u Vijay:xdsdd -X GET -H "Content-Type: application/json" https://cnwyjira.atlassian.net/secure/attachment/105028/Unix_migration_check_test.param

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Vijay Pinnapu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 29, 2016

There is no output returned. Earlier, it used to return the contents in the attachment. It does not returning anything  now. Neither the contents in the file nor an error message.

0 votes
Volodymyr Krupach @BrizoIT
Atlassian Partner
November 29, 2016

Please post the returned message.