Sometimes it matters on the form itself. Usually the trick is reverse engineering the form and what it sends to login, sometimes you can cheat with a packet sniffer, or this tool I use (windows based) called Webcli - it's a tool that is open source vb source code but I tweaked it to help me analyze responses and to create "posts" and "gets" in the raw to help develop my web server. If you want it - let me know - I'll put it on my ftp server with source code if I haven't already.
--Jason P Sage - Jegas.com -----Original Message----- From: Luca Olivetti [mailto:[email protected]] Sent: Monday, October 12, 2009 11:23 AM To: Ararat Synapse Subject: Re: [Synalist] login to web page En/na Petr Fejfar ha escrit: > Dne Mon, 12 Oct 2009 11:27:14 +0200 Rodolfo Rughi - Mondoesa Umbria srl > <[email protected]> napsal/-a: > >> How can I (using the synapse httpcli): >> - receive the prompt when I opne this page ? >> - open this page and send authentication login ? > > Passing username & password as part of URL > to the method HTTPMethod() could work for you > e.g. > > http://rodolfo.rughi:[email protected]/..... No, that probably won't work (it's the browser that interprets the username/password and adds the correct "Authorization" header). I don't know how to to it in synapse, but what you have to to is to put an Authorization header in the request. See, e.g., here: http://en.wikipedia.org/wiki/Basic_access_authentication Bye -- Luca ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
