> If I access a script using the URL 
> http://localhost:8080/printrequest.wtf (I'm using wtf as the extension 
> instead of ws3), then the command
> 
> web::put [web::cmdurl command -urlformat {scheme host port scriptname 
> pathinfo querystring}]
> 
> outputs "http://localhost:8080:8080/printrequest.wtf?XDxJ7kkLRVB75Hb..."; 
> in the web page.
> 
> Note the port number 8080 is listed twice. Is this a bug or is port not 
> to be specified if host is specified?

No. I'd call it a bug. Depending on Browser and Web server the
HTTP_HOST is sometimes with port and sometimes without. That used to
be more often without port... (when the Websh code was written.)

I'll put it on the bug list. Work around it by using something like 

  web::cmdurlcfg -host localhost

hth
Ronnie

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to