[tclwebtest] RE: Can't use do_request with a dotted decimal URL

"Molek, Gordon" <[email protected]> Thu, 24 Jul 2003 07:58:12 -0500
Newsgroups gmane.comp.web.tclwebtest
Message-ID <[email protected]>
I just recently downloaded tclwebtest, the ChangeLog file shows

-- Release 0.3 2003-05-26 ---

My test case is very simple (based on one of the self-test files
that came with the package):

set URL1 "http://www.google.com"
set URL2 "http://216.239.39.99"

do_request $URL1

link reset_current
while {![catch {link find -next}]} {
   debug "found a link: [link get_text] <[link get_url]>"
}

do_request $URL2

link reset_current
while {![catch {link find -next}]} {
   debug "found a link: [link get_text] <[link get_url]>"
}

If I run it as above, both do_requests work.  If swap URL1 and URL2,
e.g.,

set URL2 "http://www.google.com"
set URL1 "http://216.239.39.99"

do_request $URL1

link reset_current
while {![catch {link find -next}]} {
   debug "found a link: [link get_text] <[link get_url]>"
}

do_request $URL2

link reset_current
while {![catch {link find -next}]} {
   debug "found a link: [link get_text] <[link get_url]>"
}

So that I attempt the dotted decimal URL request first (or only
try the dotted decimal URL request), it doesn't work.

Weird,

Gordon


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01