The modified method above allows retrieving a page from a server with shared IP hosting (but works even with static IP servers) if cPageName starts with "http://", otherwise it works as before (for compatibility reasons).
Antonio, could you please update the standard lib ?
Hi,
Davide
METHOD GetPage( cPageName ) INLINE ;
::oSocket:SendData( "GET "+IIf(Upper(Left(cPageName,7))="HTTP://",;
cPageName + " HTTP/1.0" + CRLF + "host: " + SubStr(cPageName,8,AT("/",SubStr(cPageName,8)+"/")-1),;
"/" + cPageName + " HTTP/1.0") + CRLF + CRLF )Antonio, could you please update the standard lib ?
Hi,
Davide