R
Rover
Unregistered / Unconfirmed
GUEST, unregistred user!
我程序代码如下:
var
URL: String;
T : TIdHTTP;
begin
Result := true;
T := TIdHTTP.Create(Application);
T.Request.ContentType:='application/x-www-form-urlencoded';
T.Request.UserAgent:='Mozilla/4.0 (compatible; MSIE 6.0; Win32)';
URL := 'http://211.114.222.222/Smsclientinterface/send.asp?' +
'circle=aaa&pwd=bbb';
try
ReturnStr := T.Get(URL);
except
on e: Exception do
begin
Result := false;
ReturnStr := e.Message;
end;
end;
ReturnStr := '' + Returnstr;
end;
报错,返回:HTTP/1.1 400 Bad Request
大家看我哪里出问题了?
var
URL: String;
T : TIdHTTP;
begin
Result := true;
T := TIdHTTP.Create(Application);
T.Request.ContentType:='application/x-www-form-urlencoded';
T.Request.UserAgent:='Mozilla/4.0 (compatible; MSIE 6.0; Win32)';
URL := 'http://211.114.222.222/Smsclientinterface/send.asp?' +
'circle=aaa&pwd=bbb';
try
ReturnStr := T.Get(URL);
except
on e: Exception do
begin
Result := false;
ReturnStr := e.Message;
end;
end;
ReturnStr := '' + Returnstr;
end;
报错,返回:HTTP/1.1 400 Bad Request
大家看我哪里出问题了?