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?
Community moderators have prevented the ability to post new answers.
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"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.