Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for PUT/DELETE http methods #140

Open
GoogleCodeExporter opened this issue Aug 18, 2015 · 1 comment
Open

Support for PUT/DELETE http methods #140

GoogleCodeExporter opened this issue Aug 18, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Mongoose requires setting PUT_DELETE_PASSWORDS_FILE option (.htpasswd file with 
username/password), and later when performing PUT/DELETE request these 
credentials must be included in headers.

A new option in settings.json "put_delete_password_file" with two possible 
values:
a) A path to "/.htpasswd" file
b) Value of "no-password-file-required" - this would require modification in 
mongoose.c so that password is not required for PUT/DELETE requests.

See this topic for reference: 
https://groups.google.com/d/topic/phpdesktop/x5TPLUSdc4w/discussion

Original issue reported on code.google.com by [email protected] on 31 Oct 2014 at 8:43

@GoogleCodeExporter
Copy link
Author

An example .htpasswd file, from Mongoose UserManual:

    ### global\_auth\_file
    Path to a global passwords file, either full path or relative to the current
    working directory. If set, per-directory `.htpasswd` files are ignored,
    and all requests are authorised against that file.

    The file has to include the realm set through `authentication_domain` and the password in digest format:

        user:realm:digest
        test:test.com:ce0220efc2dd2fad6185e1f1af5a4327

    (e.g. use [this generator](http://www.askapache.com/online-tools/htpasswd-generator))

Original comment by [email protected] on 31 Oct 2014 at 9:27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant