Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is sending POST data with a GET request valid?

Tags:

People also ask

Can you POST data with a GET request?

Yes, you can send any HTTP headers with your GET request. For example, you can send user authentication data in the Authorization header, send browser cookies in the Cookie header, or even send some additional details about your request in custom headers like X-Powered-By or X-User-IP.

Can you update data with a GET request?

It's OK for GET Requests to Update the Database.


Using Curl for example, I can "post" data (send an entity-body) in a GET request. Is this a valid thing to do? With that I mean:

  • Is it not forbidden by any RFC specification?
  • Does someone out there use it with good reason?