Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

send a password to website

2 views
Skip to first unread message

Karsten Seresse

unread,
Feb 18, 2003, 12:32:34 PM2/18/03
to
Hi !

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

David Gravereaux

unread,
Feb 18, 2003, 12:57:03 PM2/18/03
to
Karsten Seresse <ser...@ec-darmstadt.de> wrote:

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]

David Gravereaux

unread,
Feb 18, 2003, 1:07:03 PM2/18/03
to
David Gravereaux <davy...@pobox.com> wrote:

>http:user:pass://www.site.com/page

Nope..

http://user:pa...@www.site.com/page

Cameron Laird

unread,
Feb 18, 2003, 1:24:26 PM2/18/03
to
In article <ket45vspbh00thfeo...@4ax.com>,

David Gravereaux <davy...@pobox.com> wrote:
>David Gravereaux <davy...@pobox.com> wrote:
>
>>http:user:pass://www.site.com/page
>
>Nope..
>
>http://user:pa...@www.site.com/page
.
.
.
People mean several different things by "go to a site
with a password". Davy's formula above might well be
the clue the original poster needed. If not, I strongly
urge her to write again, perhaps with an explanation of
how she uses Tcl withOUT passwords. It's certain that
Tcl can do this chore; we just need to be clear on what
it is.
--

Cameron Laird <Cam...@Lairds.com>
Business: http://www.Phaseit.net
Personal: http://phaseit.net/claird/home.html

Glenn Jackman

unread,
Feb 18, 2003, 1:44:44 PM2/18/03
to

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

0 new messages