raised exception class eidhttpprotocolexception with message http/1.1 400
estou enviando um json porem ele me retorma o seguinte erro ''raised exception class eidhttpprotocolexception with message ''http/1.1 400''''
procedure TForm1.Button1Click(Sender: TObject);
var lURL : String;
lResponse : TStringStream;
begin
lResponse := TStringStream.Create('''');
try
lURL := ''http://209.133.205.2/painel/api.ashx?action=sendsms&lgn=14996172676&pwd=228167&msg=testando envio sms &numbers=14996172676'';
idHttp1.Get(lURL, lResponse);
lResponse.Position := 0;
{ Exemplo de uso do response : carregar o conte�do num RichEdit : }
reResp.Lines.LoadFromStream(lResponse);
finally
lResponse.Free();
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
var lURL : String;
lResponse : TStringStream;
begin
lResponse := TStringStream.Create('''');
try
lURL := ''http://209.133.205.2/painel/api.ashx?action=sendsms&lgn=14996172676&pwd=228167&msg=testando envio sms &numbers=14996172676'';
idHttp1.Get(lURL, lResponse);
lResponse.Position := 0;
{ Exemplo de uso do response : carregar o conte�do num RichEdit : }
reResp.Lines.LoadFromStream(lResponse);
finally
lResponse.Free();
end;
end;
Lucas
Curtidas 0