Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How are PUT parameters passed to a page?

Tags:

I can't find a precise answer on that question :

Are parameters which are sent by PUT passed in the URL, or in the HTTP header ?

I think it's the HTTP header, but when I submit my form with the PUT method, it appends the parameters to the URL !

like image 906
DKF Avatar asked Sep 25 '12 07:09

DKF


People also ask

How can we pass parameters to the Put request?

Are parameters which are sent by PUT passed in the URL, or in the HTTP header ? Not the headers. It's the same as POST - either the URL or the body of the request. The only difference is the HTTP verb being used and of course the semantics that come with it (UPDATE a resource on the server).

Can Put have query parameters?

Is it OK to use query parameters in a PUT request? Absolutely. Query parameters are just another piece of the resource identifier.


1 Answers

Are parameters which are sent by PUT passed in the URL, or in the HTTP header ?

Not the headers. It's the same as POST - either the URL or the body of the request. The only difference is the HTTP verb being used and of course the semantics that come with it (UPDATE a resource on the server).

like image 196
Darin Dimitrov Avatar answered Oct 17 '22 05:10

Darin Dimitrov