Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

primitive text browser for web

Browser, server and editor. His original view was that everyone would publish from their own machines in a P2P way.



That `editor' part cannot be stressed enough. It's a shame the PUT and PATCH HTTP methods aren't widely used nor open for use.


I haven't seen a PATCH used in any real fashion, but PUT is now a fairly standard part of most HTTP APIs.


> but PUT is now a fairly standard part of most HTTP APIs.

Is it? I know Rails uses "put" for editing a model, but it was my understanding that it simulates this via a hidden field in the form and actually issuing a POST request.

Why does it behave that way? I thought it was because many browsers don't support PUT, but maybe it's for other reasons?


I'm referring to an HTTP API (RESTful if you will). HTML forms only support GET and POST, but browsers support GET, POST, PUT, and DELETE via XMLHttpRequest.

Also, access to a lot of services' APIs don't come from browsers at all.


Thanks for the clarification. I didn't realize it was only HTML forms limited to GET and POST and not the browser as a whole.


PUT is not supported in the browser [1], but web APIs are mainly intended for non-browser clients to access. A client app that consumes a well-designed HTTP web API will use POST to create a resource, PUT to update a resource, and so on.

[1] With the caveat that the Javascript XMLHttpRequest API does support PUT and DELETE.


I don't understand this distinction. A client is a client; how are you to distinguish "browsers" from other clients?


The GP here was poorly worded. It's not that browsers don't support PUT and DELETE (they do, and it's used all the time vie XMLHttpRequest), it's that HTML doesn't support those verbs for forms.

You're right in that a "client is a client", and the API doesn't (or shouldn't) care.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: