Questions tagged [http-request-parameters]

The parameters that are mapped to the servlet request when they are parsed from the http request.

The parameters that are mapped to the servlet request when they are parsed from the http request. These parameters represent a query string when a method GET is used and a body of the request if a method POST is used.

276 questions
0
votes
1 answer

Modifying the request parameters in HTTP GET request while passing it to controller

I need to modify the request parameters in the GET URL "http://localhost:8081/qeats/v1/restaurants?latitude=87.97864&longitude=20.82345" while sending it to spring boot controller such that the latitude and longitude values are only precise up to…
0
votes
1 answer

How to replace "undefined" with zero value in javascript or form to pass to spring-mvc controller?

I am creating with a mouse event two float values in a javascipt jquery function and pass these values via form to a spring mvc controller as parameters. It works fine when the values get actually created but when I do not create them, the form…
0
votes
3 answers

How can I request parameters in c# controller from Angular? (no url concatenation)

I have a general question and I can't seem to find any answer in other topics. So I'll show my code here: This is my register.component.ts: email = this.registerForm.controls['email'].value; password =…
Sebi Dragu
  • 11
  • 3
0
votes
2 answers

how to capture some parameters using @RequestParam using spring mvc?

Suppose a hyperlink is clicked and an url is fired with the following parameter list myparam1=myValue1&myparam2=myValue2&myparam3=myValue3 . Now how can I capture some of the parameters using @RequestParam in spring mvc? My requirement is I have to…
0
votes
0 answers

How to put multiple input parameter in Google (Places) API

How can i put multiple languages parameter on this Google Places API, so i can get higher query priorities in the listed languages https://maps.googleapis.com/maps/api/js?key=MYKEY&libraries=places&language= To be specific, i want EN, IT, DE, ES,…
0
votes
1 answer

powershell: invoke-restmethod : The remote server returned an error: (400) Bad Request

I'm trying to create a Rest API's from a power shell, when i'm trying to run the script i'm getting the following error. I'll put the script and the error also. Thank you so much ! Script: #Skip SSL Errors add-type @" using System.Net; …
0
votes
1 answer

Spring Boot - put data to update form using @PathVariable

When I try put data to update form using @PathVariable like this: Edit Method in Controller: @GetMapping("/turysci/updateForm/{idTurysta}") public String…
Seldo97
  • 611
  • 1
  • 8
  • 17
0
votes
2 answers

Dynamic @RequestParam in @RestController

I have a controller: @RestController @RequestMapping(value = UserRestController.REST_URL, produces = MediaType.APPLICATION_JSON_VALUE) public class UserRestController { static final String REST_URL = "/customers"; @GetMapping public List
Jelly
  • 972
  • 1
  • 17
  • 40
0
votes
2 answers

How do you make a request with matrix parameters in the URI to a backend when using Angular's HttpClient?

Matrix parameters have been around since the late 90ies, and Angular's RouterModule knows how to deal with requests containing them. Nowadays, I would say they are a defacto standard. Given that, I was wondering if Angular's HttpClient supports them…
Christian
  • 6,070
  • 11
  • 53
  • 103
0
votes
1 answer

Cross Site Scripting support on Rest based POST Web service

I have designed a REST based post Service using Spring 3. The service method consumes parameter as String and responds data as String. The param and response can be json or string @RequestMapping(value = "/service", method = RequestMethod.POST) …
Ecnoir
  • 73
  • 1
  • 2
  • 9
0
votes
1 answer

Is there a way to include raw URL in http request params?

I've got a quick question, is it possible to include raw url in request params? I guess that it is a problem with additional // that confuses Postman, which I am using or I have to create a special request handler in my…
Mesmer
  • 59
  • 4
0
votes
1 answer

How to resolve req.getParameter() returning null in servlet?

I am reading 2 numbers as input and am trying to print them in the output dynamically using Servlet, req.getParameter() returns null: HTTP Status 500 – Internal Server Error Type Exception Report Message null Description The server encountered an…
Jvoo
  • 19
  • 1
  • 1
  • 2
0
votes
1 answer

Send RequestParam to Spring Boot Server in Axios

I have a controller method in my Spring Boot app which takes an argument from @RequestParam. I'm sending it using Axios, but every time the server responds with the following warning and the function doesn't get executed. Required long parameter…
Pavindu
  • 2,684
  • 6
  • 44
  • 77
0
votes
0 answers

asp.net core WebAPI get subset of Generic Request Object

I am new into asp.net core webAPI. I have created a Controller method that taken a request object. [HttpPost] [Route("/api/DoWork")] [ValidateModelState] public virtual IActionResult DoWork(CustomRequest request) { …
0
votes
1 answer

Get Parameters from Spring's HTTPREQUEST Object in RestTemplate ClientHttpRequestInterceptor

My Requirement is to Add some header in a interceptor on all requests coming via RestTemplate so I am using a ClientHttpRequestInterceptor But I also need to add all params encoaded in header but in this interceptor we get HTTPREQUEST Object which…