davenovak / phpdesktop

Automatically exported from code.google.com/p/phpdesktop
0 stars 0 forks source link

Support for PUT/DELETE http methods #140

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 czarek.t...@gmail.com on 31 Oct 2014 at 8:43

GoogleCodeExporter commented 9 years ago
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 czarek.t...@gmail.com on 31 Oct 2014 at 9:27