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:

WebDNA Modules

A list of the currently available modules...

[biotype]

BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...

Download WebDNA Applications

WebDNA applications...

F.A.Q

A compilation of some user's questions...

WebDNA Libraries

A list of available libraries for WebDNA...

Technical Change History

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

Related Readings:

a [shownext] example

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

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...

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 get the content of a returned page?

...

an example of application for [shownext]

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...