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:
WebCat2b15MacPlugin - showing [math] (1997)
Inventory Debit Procedure (1998)
shipping costs (1997)
[WebDNA] Ubuntu 10.4 & WebDNA 6.2 (2011)
Virtual hosting and webcatNT (1997)
random prob (2003)
[index] (1997)
Separate SSL Server (1997)
[WebDNA] WebDNA vs. php war ;-) (2010)
[GROUPS] followup (1997)
Big Databases (1997)
Using files in an Email broadcast (1999)
Thanks Grant (1997)
Enterprise Server (1998)
WCS Newbie question (1997)
multiple file uploads (2002)
Authenticate (1997)
[ConvertChars] problem (1997)
Country & Ship-to address & other fields ? (1997)
Error Page? (1997)