使用TIdHTTP POST数据到一个ASP网页,返回时只能接收到4096个字节,请教是什么原因?如何解决
使用TIdHTTP POST数据到一个ASP网页,返回时只能接收到4096个字节,请问是什么原因?怎么解决?
代码如下:
function HttpPost(AURL: String; AData: String): String;
var
Response : TStringStream;
tmpStr: TStringList;
tmpHTTP: TIdHTTP;
begin
tmpHTTP:= TIdHTTP.Create(Nil);
tmpStr:= TStringList.Create;
Response := TStringStream.Create('');
try
tmpHTTP.Request.ContentType := 'application/x-www-form-urlencoded';
tmpHTTP.Request.ContentLength := Length(tmpStr.Text);
tmpStr.Add(AData);
tmpHTTP.Post(AURL, tmpStr, Response);
Result := Response.DataString;
finally
tmpHTTP.Free;
tmpStr.Free;
Response.Free;
end;
end;
------解决方案--------------------
是不是没有session,被asp认为是非法的?
那返回的4K是内容东西?
------解决方案--------------------
将返回的数据贴出来
------解决方案--------------------
把返回的数据贴出来看看就知道是什么意思了
代码如下:
function HttpPost(AURL: String; AData: String): String;
var
Response : TStringStream;
tmpStr: TStringList;
tmpHTTP: TIdHTTP;
begin
tmpHTTP:= TIdHTTP.Create(Nil);
tmpStr:= TStringList.Create;
Response := TStringStream.Create('');
try
tmpHTTP.Request.ContentType := 'application/x-www-form-urlencoded';
tmpHTTP.Request.ContentLength := Length(tmpStr.Text);
tmpStr.Add(AData);
tmpHTTP.Post(AURL, tmpStr, Response);
Result := Response.DataString;
finally
tmpHTTP.Free;
tmpStr.Free;
Response.Free;
end;
end;
------解决方案--------------------
是不是没有session,被asp认为是非法的?
那返回的4K是内容东西?
------解决方案--------------------
将返回的数据贴出来
------解决方案--------------------
把返回的数据贴出来看看就知道是什么意思了