RE: [PHP] ASP question ... but I'm not on the ASP list

From: Date: Sun, 29 Oct 2000 23:13:05 +0000
Subject: RE: [PHP] ASP question ... but I'm not on the ASP list
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-22580@lists.php.net to get a copy of this message
Hi, First of all, this is off-topic since this is a PHP list but I will answer your question anyhow: Short answer to your question, no you can not open Socket directly in ASP (VBScript) by itself. Long Answer, you can do it with COM Object either bought or written by yourself in VB or C++. To do somthing like your example you can d/l ASP Com called ASPTear, it will "ripped" HTML pages for you. The URL is: http://www.alphasierrapapa.com/iisdev/components/asptear/ > Would it be possible to use sockets in ASP ? > > For example in PHP one can open a socket and retrieve info, ie > > $fp = fsockopen ("www.php.net", 80, &$errno, &$errstr, 30); > if (!$fp) { > echo "$errstr ($errno)<br>\n"; > } else { > fputs ($fp, "GET / HTTP/1.0\r\n\r\n"); > while (!feof($fp)) { > echo fgets ($fp,128); > } > fclose ($fp); > } > > My question is could this be done in ASP, or could you only get > http:// info from other sites ? >

« previous php.general (#22580) next »