Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

"Access Forbidden" error on downloading URL returned by exportSite

keithrbennett April 2, 2014

Hi, I'm writing a Ruby script that access the XML-RPC interface of a Confluence 5.3 wiki. I get a URL by calling exportSite, and then try accessing it via curl on the command line:

curl "http://localhost:8090/download/temp/xmlexport-20140402-174816-4.zip"

...but I get an HTTP Status 403 error, "Access to the specified resource () has been forbidden.". Do I need to add an access token to this URL? If not, why is this happening?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 2, 2014

You probably need to be logged in as an Administrator to download that resource (otherwise any anonymous user could download a full export of the private information on your wiki). Try using curl with the -u switch to specify the username and password, eg:

curl -u username:password "http://localhost:8090/download/temp/xmlexport-20140402-174816-4.zip"

keithrbennett April 2, 2014

Thank you! It worked and makes perfect sense.

TAGS
AUG Leaders

Atlassian Community Events