How can I save a file on an http server using just http requests and javascript?

Posted by user170902 on Stack Overflow See other posts from Stack Overflow or by user170902
Published on 2010-05-27T13:35:39Z Indexed on 2010/05/27 14:01 UTC
Read the original article Hit count: 140

Filed under:

hi all,

I'm trying to understand some of the basics of web servers/html/javasacript etc. I'm not interested in any of the various frameworks like php/asp, i'm just trying to get a low level look at things (for now).

At the moment I'm trying to understand how data can be sent to/saved on the backend, but i must admit that i'm getting a bit lost under the various specs/technical stuff on w3 at the moment!

If I have some data, say xml, that I want to save on the backend how do I go about it?

I assume that I would have to use something like an HTTP PUT or POST Request to an html doc that contains some javascript that in turn would process the data, e.g. save it somewhere. Now from googling around I can see that this doesn't seem to be the case, so my assumptions are completely wrong!

So how is it done? Can it be done, or do I have to use something like php or asp?

TIA.

bg

© Stack Overflow or respective owner

Related posts about webserver