Problem following URLs with GET parameters

Grzegorz Adam Hankiewicz <[email protected]> Sun, 6 Feb 2005 18:52:04 +0000
Newsgroups gmane.comp.web.tclwebtest
Message-ID <[email protected]>
Hi.

Long time no see, and I'm glad you made a 1.0 release. Anyway,
I got the latest CVS and tried the following test case, which failed:

 set url "http://validator.w3.org/check?uri=http://alleg.sourceforge.net/index.es.html"
 puts $url
 do_request $url
 puts [response text]
 assert text "valid html"

The do_request command seems to modify the URL (one slash before
"alleg" removed), as the following output shows:

 ----- START: test at [06/feb/2005:18:47:52] -----
 http://validator.w3.org/check?uri=http://alleg.sourceforge.net/index.es.html
 --- do_request for http://validator.w3.org/check?uri=http:/alleg.sourceforge.net/index.es.html

Well, maybe my TCL is too rusty and double slashes get parsed
somehow? Lets try something different then:

 do_request "http://alleg.sourceforge.net/index.es.html"
 link follow ~u validator
 puts [response text]
 assert text "valid html"

However, the output is not much different this time:

 ----- START: test at [06/feb/2005:18:49:55] -----
 --- do_request for http://alleg.sourceforge.net/index.es.html
 http status: >>200<<
 --- do_request for http://validator.w3.org/check?uri=http:/alleg.sourceforge.net/index.es.html
 http status: >>200<<

So, a slash is being lost somewhere. And I don't remember how I
used to debug these scripts, hehe.  Any ideas where to look?


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl