
04.05.2010, 22:51
|
|
Постоянный
Регистрация: 12.05.2009
Сообщений: 395
Провел на форуме: 4761503
Репутация:
229
|
|
Вот:
Код:
function Get(const AURL: string): string;
var
req : string;
tmp : string;
begin
tmp := AURL;
tmp := Copy(tmp, Length('http://' + GetHost(tmp)) +1, Length(tmp));
req:='GET ' + tmp + ' HTTP/1.1' + #13#10 +
'Host: '+ GetHost(AURL) + #13#10+
'User-Agent: Opera/9.24 (Windows NT 5.1; U; en)' + #13#10 +
'Connection: Keep-Alive' + #13#10 +
//'Referer: http://vkontakte.ru/index.php' + #13#10 +
'Content-Type: application/x-www-form-urlencoded' + #13#10 + #13#10;
result := SendRequest(aurl, req);
end;
А именно:
'Content-Type: application/x-www-form-urlencoded' + #13#10 + #13#10;
|
|
|