How do I make tcpconnect send a username and password like the browser does?

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?

numero = 52
interpreted = N
texte = You need to add an "Authorization" HTTP header to your request:
[TCPConnect host=192.168.1.1&port=80][tcpsend]GET /index.tpl HTTP/1.0[unurl]%0D%0A%0D%0A[/unurl]Authorization: Basic [Encrypt method=Base64]Username:Password[/Encrypt] [unurl]%0D%0A%0D%0A[/unurl][/tcpsend][/TCPConnect]
(Change Username and Password to your actual values) You need to add an "Authorization" HTTP header to your request:
[TCPConnect host=192.168.1.1&port=80]
[tcpsend]GET /index.tpl HTTP/1.0[unurl]%0D%0A%0D%0A[/unurl]
Authorization: Basic [Encrypt method=Base64]Username:Password[/Encrypt] [unurl]%0D%0A%0D%0A[/unurl][/tcpsend]
[/TCPConnect]

(Change Username and Password to your actual values) Christer Olsson

DOWNLOAD WEBDNA NOW!

Top Articles:

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

WebDNA reference

...

Download WebDNA Applications

WebDNA applications...

WebDNA Modules

A list of the currently available modules...

AWS Raw WebDNA LAMP-Plus WebServer

Amazon Web Services (AWS) README for Machine Image ID...

F.A.Q

A compilation of some user's questions...

Related Readings:

an example of application for [shownext]

How to use [shownext] to create "Next | Previous" search results the same way Google does...

How do I get the content of a returned page?

...

a [shownext] example

How to use [shownext] to create "Next | Previous" search results the same way Google does...

another [shownext] example

How to use [shownext] to create "Next | Previous" search results the same way Google does...

alternative to [shownext]

This will show your next links in the format of Page 1 | 2 | 3 etc and can be used even when the page isn't a results page from a [search] command...

How do I make tcpconnect send a username and password like the browser does?

so I can access a page that normally needs to be logged into via the browser's authentication dialog? In other words...