WebFaction
Community site: login faq

I have an api for my site whick allows a user to upload a file for their account. In development, the following worked:

curl -u user:pasword mysite.com/api/sessionFile/ -X POST -F "File=@filename"

Since moving to Webfaction, the above produces this error message: Authorization Required

Is there an additional param needed in the curl statement?

asked 05 May '11, 14:20

slotsspot
122
accept rate: 0%

Can you try the following: curl -u user:pasword --digest mysite.com/api/sessionFile/ -X POST -F "File=@filename"

If that fails, try: curl -u user:pasword --anyauth mysite.com/api/sessionFile/ -X POST -F "File=@filename"

If both fail, the password or username may be incorrect.

(05 May '11, 17:25) aaronh ♦♦
1

Thanks for the suggestion. Turns out my problem was with my apache config file. I'm using django piston and I forgot to add WSGIPassAuthorization On to the file.

(05 May '11, 17:42) slotsspot

Thanks for the update!

(05 May '11, 17:49) aaronh ♦♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×15

question asked: 05 May '11, 14:20

question was seen: 4,130 times

last updated: 05 May '11, 17:49

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2021 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM