I´m looking for a possibility to send a password to a website (Intranet,
so security is a minor issue) with a tcl-script. I saw that there is a
browser plugin, is it possible with that ?
Any hints are welcome
Karsten Seresse
Its put in the url itself. I think it's done like this:
http:user:pass://www.site.com/page
The browser plugin is different. It runs in the page on the client side,
not part of the fetch.
--
David Gravereaux <davy...@pobox.com>
[species: human; planet: earth,milkyway(western spiral arm),alpha sector]
>http:user:pass://www.site.com/page
Nope..
http://user:pa...@www.site.com/page
Cameron Laird <Cam...@Lairds.com>
Business: http://www.Phaseit.net
Personal: http://phaseit.net/claird/home.html
If the page is .htaccess protected, and that's why you need a password,
you can do:
package require http
package require base64 ;# from tcllib
set user username
set pass password
set authdata [::base64::encode "$user:$pass"]
set authheader [list Authorization [list Basic $authdata]]
set url http://my.url
set token [::http::geturl $url -headers $authheader]
set body [::http::data $token]
--
Glenn Jackman
NCF Sysadmin
gle...@ncf.ca