BUENOS DIAS,
NECESITO ENVIAR A UN WEBSERVICE 2 PARAMETROS ( user , secret_key ) JSON , PERO ME ERROR HTTP/1.1 500 Internal Server Error.
ENVIO FUENTE .
GRACIAS
Código Delphi
[-]
restclient1.BaseURL := 'aqui pongo la url donde envio';
RESTClient1.ContentType := 'ctAPPLICATION_JSON';
s := '{ "user": "1111","secret_key": "11111" }';
RESTRequest1.Method := TRESTRequestMethod.rmPOST;
RESTRequest1.ADDBODY(S);
RESTRequest1.Params.AddItem; RESTRequest1.Params.Items[0].Value := s; RESTRequest1.Params.Items[0].ContentType := ctAPPLICATION_JSON; RESTRequest1.Params.Items[0].Kind := pkGEToRPOST; restrequest1.Execute;