Linked Questions
473 questions linked to/from HTTP GET with request body
76 votes
2 answers
253k views
For Restful API, can GET method use json data? [duplicate]
I don't want to see so long parameters string in the URI. So, can GET method use json data? In my situation, I need to filter the result given kind of parameters. If there are a lot of parameter, the ...
19 votes
1 answer
70k views
Spring RestTemplate - http GET with request body [duplicate]
Possible Duplicate: HTTP GET with request body I've read few discussions here which do not advocate sending content via HTTP GET. There are restrictions on the size of data that can be sent via ...
3 votes
1 answer
11k views
HTTP GET request with body for RESTful API [duplicate]
I've been looking at how to implement the following: I am developing a RESTful Web API (using .Net Core 2.2). I need to create an endpoint where the consuming client can send some text to the API, ...
2 votes
1 answer
10k views
Is it possible to pass parameters in the Header Section of HTTP get request? [duplicate]
Is passing parameters in the Header Section of HTTP GET possible? Passing parameters in the requested URL is one way of passing parameters. Is there any other way to do the same?
2 votes
1 answer
6k views
How do I send payload with GET call using JAX-RS client? [duplicate]
I know that GET call should not have body but the call is developed by other people and I can't change it now. I want to consume an API which is GET method and takes payload (json body). I can consume ...
3 votes
1 answer
5k views
HTTP GET with request body to limit fields and filter [duplicate]
I'm currently working on REST API. I like the idea of GraphQL or OData to allow developer to choose which columns/fields to return and relation record. But GraphQL require migration and oData have too ...
0 votes
1 answer
3k views
JS FetchAPI Get Request add raw body data [duplicate]
I have a GET request setup in Postman with raw body data as below and it works. I can get data from the server But my Js fetch api I'm not sure how to add request body data to it. Here is my GET ...
0 votes
2 answers
3k views
RESTful web service in Java - 400 Bad request - Wrong method invocation? [duplicate]
I don't understand why this curl invocation gives me a 400 bad request. curl -v -XGET -H "Content-Type:application/json" -d '{"match":{"first":"james"}}' http://localhost:8080/geocon/search/ ...
-1 votes
1 answer
2k views
ASP.NET Core 3.1 get method body breaks the request [duplicate]
Issue happened on ASP.NET Core 3.1 Web API controller. I have a method in controller with [HttpGet] attribute and [FromBody] for only parameter: [HttpGet] public async Task<ActionResult> ...
1 vote
1 answer
810 views
What would a body in an HTTP GET look like? [duplicate]
I realize this is not recommended, but I'm wondering what the URL would look like, for example: http://myserver.com/rest/info?param1=foo¶m2=bar how would you append a body to that URL, I don'...
1 vote
0 answers
535 views
No body on a GET request using fetch API? [duplicate]
I am sending (rather rying to) send a GET request to my server using the native JavaScript fetch API with an HTML client. On postman I can do this, no problems, what is wrong? Here is the error: ...
2 votes
0 answers
216 views
How to send http request with body property using fetch in javascript [duplicate]
new learner here. I usually test my GET api with Postman, where I can send a Get request with a JSON body. I'm trying to do the same using Javascript to send a http GET request with a Body like how we ...
0 votes
0 answers
17 views
axios get request with data passing though is not properly passing the data [duplicate]
I know this is simple but for some reason I can not find the solution for the life of my at all. I am trying to create an axios request and pass data into request to find a single user with a username....
5837 votes
19 answers
1.8m views
What is the maximum length of a URL in different browsers?
What is the maximum length of a URL for each browser? Is a maximum URL length part of the HTTP specification?
1138 votes
17 answers
945k views
Is an entity body allowed for an HTTP DELETE request?
When issuing an HTTP DELETE request, the request URI should completely identify the resource to delete. However, is it allowable to add extra meta-data as part of the entity body of the request?