Meyer, Bruce wrote:
 Am I correct in assuming that your 'testconnection.asp is a homegrown asp?
Can I just replace that with a:

Send=GET www.somewebpage.com HTTP/1.0\r\n

I don't know what your testconnection.asp does.

not quite - you'd replace it with

Send=GET / HTTP/1.0\r\nHost: www.somewebpage.com\r\n\r\n
Expect=~Connection OK

for that. The part after the GET is the page within the site. If the server uses HTTP virtual hosts, then you must include the Host: section. Finally, there should be two sets of \r\n\r\n at the end, otherwise it isn't a valid HTTP request.

testconnection.asp is a page our customer wrote that simply connects to an off-site database, and then reports on whether it did or didn't connect. Something like

<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Open "OurDSN"
If Err.Number = 0 then
        response.write "Connection OK"
end if
conn.close
%>

I think. Wow, it's been a while since I wrote any VBScript! :-)

Best Regards,

Howard


Please visit http://www.ipswitch.com/support/mailing-lists.html to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/

Reply via email to