L
liaoyong
Unregistered / Unconfirmed
GUEST, unregistred user!
url1:='';
url1:=url1+'GET /'+serfilename+' HTTP/1.1'+#13#10; //serfilename为文件名
url1:=url1+'User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)'+#13#10;
url1:=url1+'RANGE: bytes='+inttostr(pos1)+'-'+#13#10; //pos1为文件大小
url1:=url1+'Host: '+serhost1 +#13#10; //serhost1 为网站IP
url1:=url1+#13#10;
FUpdate.ClientSocket1.Socket.SendText(url1);
连接一般的网页可以连接上
如果网页设有密码和用户名应该怎么连接...
url1:=url1+'GET /'+serfilename+' HTTP/1.1'+#13#10; //serfilename为文件名
url1:=url1+'User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)'+#13#10;
url1:=url1+'RANGE: bytes='+inttostr(pos1)+'-'+#13#10; //pos1为文件大小
url1:=url1+'Host: '+serhost1 +#13#10; //serhost1 为网站IP
url1:=url1+#13#10;
FUpdate.ClientSocket1.Socket.SendText(url1);
连接一般的网页可以连接上
如果网页设有密码和用户名应该怎么连接...