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 |
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.
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.
Thanks for the update!