Обратился к сайту
www.blitzbasic.com по протоколу HTTP:
pot=OpenTCPStream("www.blitzbasic.com" ,80)
WriteLine pot,"GET /index.php HTTP/1.1"
WriteLine pot,"Host: blitzbasic.com"
WriteLine pot,Chr$(10)
While Not Eof(pot)
Print ReadLine$(pot)
Wend
Работает.
Подключаюсь к своему сайту.
pot=OpenTCPStream("www.xxxxxxxxx.com", 80)
(...)
Получаю при считывании страницы:
HTTP/1.1 403 Forbidden
Server: Lusca/LUSCA_HEAD-r14705
Date: Mon, 12 Jul 2010 20:16:16 GMT
Content-Type: Text/html
Content-Length: 2218
X-Squid-Error: ERR_ACCESS_DENIED 0
X-Cache: MISS from xx.xxxxx.com
Via: 1.0 xx.xxxxx.com:80 (Lusca/LUSCA_HEAD-r14705)
Connection: close (...)
|
Считать страницу не удаётся. Может хостинг блокирует внешние запросы?
Почему может быть отказано в доступе?