"Michael Rasmussen" <mir@miras.org> skrev i en meddelelse
news:20110520151157.49d63a95@sleipner.datanom.net...
On Fri, 20 May 2011 15:01:09 +0200
"Kurt G" <kurt_g@guldbaek.net> wrote:
> Hej.
> Jeg forsøger stadig at uploade filer til en server.
> I de eksempler, som jeg er stødt på, er der alle steder brugt POST.
> Er det en betingelse for, at man kan uploade?
>
Man kan også anvende PUT, men mange webservere har denne mulighed slået
fra RFC:
"The fundamental difference between the POST and PUT requests is
reflected in the different meaning of the Request-URI. The URI in a
POST request identifies the resource that will handle the enclosed
entity. That resource might be a data-accepting process, a gateway to
some other protocol, or a separate entity that accepts annotations. In
contrast, the URI in a PUT request identifies the entity enclosed with
the request -- the user agent knows what URI is intended and the server
MUST NOT attempt to apply the request to some other resource. If the
server desires that the request be applied to a different URI,"
--
Hilsen/Regards
Michael Rasmussen
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
A computer is like air conditioning: it becomes useless when you open
windows.
--------------------------------
Den mulighed kendte jeg slet ikke.
Jeg tænkte blot på, om man ikke kunne bruge GET i stedet, men det kan man
nok ikke!
Mvh Kurt