Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Let's say we have a file on server which have all permissions 777. Is it possible to make a script, situated on other server than the file to modify. The script uses HTTP 1.1 protocol features only to modify the file. Is this scenario possible?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Technically, yes, it is possible. HTTP 1.1 has the PUT and PATCH write commands as well as a DELETE command. However, they are not implemented on most web servers. You need to tell Apache to accept the PUT/PATCH/DELETE commands and have a specific program or script handle those commands to do the writing and deleting.

Luckily, this W3C page lists 2 web servers (Jigsaw is the only one still maintained) that support PUT by default plus an easy way to set up Apache to also support it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.