Hi,
I am trying to update a record by sending parameters to a Webservice. When I run it it returns the code 400 (Bad Request).
The method used is the following:
public static Response aceptarCarga(Long cargaId, Long fecha) {
Response<String> r = Rest.put(SERVER_URL + "ws_carga1/ws_carga1.php").
header("token", UsuarioService.getToken()).
queryParam("carga_id", Long.toString(cargaId)).
queryParam("fecha", Long.toString(fecha)).
queryParam("accion", "aceptar_carga").
getAsString();
return r;
}
Provide the same parameters sent through Postman and they run correctly.
I include an image that returns the correct SQL to me via Postman