From: Tero Koskinen <tero.koskinen@iki.fi>
Subject: Re: GNAT.Sockets: Authentication at HTTP Server
Date: Tue, 11 Sep 2007 20:07:35 +0300
Date: 2007-09-11T20:07:35+03:00 [thread overview]
Message-ID: <20070911200735.42f081e9.tero.koskinen@iki.fi> (raw)
In-Reply-To: 1189528985.876768.122400@57g2000hsv.googlegroups.com
On Tue, 11 Sep 2007 16:43:05 -0000 Adrian Hoe wrote:
> Hi,
>
> How do I connect to a HTTP server (a website) which requires
> authentication (Username, Password) with GNAT.Sockets?
If you can use GPL/GMGPL code, look how AWS does it
and take its client side code. AWS uses GNAT.Sockets for
communication.
AWS documentation at
https://libre.adacore.com/aws/aws-gpl-2.3.0.html#Client-side
gives following example:
> If the Web page is protected and you must pass the request through an
> authenticating proxy, the call will becomes:
>
> Data := Client.Get
> (URL => "http://www.mydomain.net/protected/index.html"
> User => "me",
> Pwd => "mypwd",
> Proxy => "192.168.67.1",
> Proxy_User => "puser",
> Proxy_Pwd => "ppwd");
Although, if a website uses some custom authentication method, then
you probably need to play with HTML parsing, cookies, sessions,
and stuff.
--
Tero Koskinen - http://iki.fi/tero.koskinen/
next prev parent reply other threads:[~2007-09-11 17:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-11 16:43 GNAT.Sockets: Authentication at HTTP Server Adrian Hoe
2007-09-11 17:03 ` Pascal Obry
2007-09-11 17:07 ` Tero Koskinen [this message]
2007-09-13 8:29 ` Adrian Hoe
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox