Re: tcpconnect - username/password
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62999
interpreted = N
texte = >How do I make tcpconnect send a username and password like the browser >does ... it so I can access a page that normally needs to be logged >into via the browser's authentication dialog? In other words, what >must I add to this code to make it work?>>[TCPConnect host=3D192.168.1.1&port=3D80]>[tcpsend]GET /index.tpl HTTP/1.0[unurl]%0D%0A%0D%0A[/unurl][/tcpsend]>[/TCPConnect]You need to add a "Authorization" HTTP header to your request:[TCPConnect host=3D192.168.1.1&port=3D80][tcpsend]GET /index.tpl HTTP/1.0[unurl]%0D%0A%0D%0A[/unurl]Authorization: Basic [Encrypt method=3DBase64]Username:Password[/Encrypt] [u=nurl]%0D%0A%0D%0A[/unurl][/tcpsend][/TCPConnect](Change Username and Password to your actual values)-- ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Id=E9er AB SE-200 39 Malmo Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>How do I make tcpconnect send a username and password like the browser >does ... it so I can access a page that normally needs to be logged >into via the browser's authentication dialog? In other words, what >must I add to this code to make it work?>>[TCPConnect host=3D192.168.1.1&port=3D80]>[tcpsend]GET /index.tpl HTTP/1.0[unurl]%0D%0A%0D%0A[/unurl][/tcpsend]>[/TCPConnect]You need to add a "Authorization" HTTP header to your request:[TCPConnect host=3D192.168.1.1&port=3D80][tcpsend]GET /index.tpl HTTP/1.0[unurl]%0D%0A%0D%0A[/unurl]Authorization: Basic [Encrypt method=3DBase64]Username:Password[/Encrypt] [u=nurl]%0D%0A%0D%0A[/unurl][/tcpsend][/TCPConnect](Change Username and Password to your actual values)-- ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Id=E9er AB SE-200 39 Malmo Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Christer Olsson
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Snake Bites (1997)
[WebDNA] Spambots, message boards and such (2008)
RE: Cart Template (1997)
Moose on a Stump (2000)
Support ?? (1997)
Problems with date math (1997)
href name= link from dynamic URL possible? (1998)
Help with ShowNext (1998)
tmpl Vs DB (1999)
includes and cart numbers (1997)
Spamming this list! (2000)
More on the email templates (1997)
t or f (1997)
What do you charge? (1998)
Passing info in [Addlineitem] (1997)
[WebDNA] Browser types (2010)
[WebDNA] Spawn bombing out with ".db-oRiGiNaL-" (2017)
SiteGuard Use Question (1997)
Pull Down Search (2000)
Multiple catalog databases and showcart (1997)