Prev: Identifying the Content-Type of a file for HttpURLConnection
Next: Another Servlet/JSTL question
From: gian on 1 Aug 2010 01:54 On 1 Ago, 00:15, Tom Anderson <t...(a)urchin.earth.li> wrote: > On Sat, 31 Jul 2010, gian wrote: > > I am developing an application that includes a servlet.This servlet make > > a redirect to another application (a site that I know credentials.. > > username and password.) What I have to do? > > It might be easiest to send a normal 200 response, containing some simple > HTML with a form to log into the second application, and a javascript > onload handler that submits the form. Essentially, simulate a normal login > from the browser. > > > tom > > -- > Sound fine..(but i dont understand the 200 response..) you say (if i understand well)your idea is servlet generate the html and the javascript.. I will try ..
From: Stanimir Stamenkov on 1 Aug 2010 03:47 Sat, 31 Jul 2010 22:37:53 -0700 (PDT), /gian/: > yes i know but i cant use http client for version problem.httpclient > want java 5 and i have to use java 1.4 What about previous versions: http://hc.apache.org/httpclient-3.x/index.html http://hc.apache.org/downloads.cgi#Commons_HttpClient_3.1_legacy -- Stanimir
From: Arne Vajhøj on 1 Aug 2010 09:12 On 01-08-2010 01:37, gian wrote: > On 31 Lug, 23:42, Stanimir Stamenkov<s7a...(a)netscape.net> wrote: >> Sat, 31 Jul 2010 14:21:19 -0700 (PDT), /gian/: >>> The application where I want to log-on uses cookies in the process of >>> log-on (but I do not know how to handle them) and also the https .. >> >> You may use the Apache's HttpClient which will handle the cookies >> for you: >> >> http://hc.apache.org/httpcomponents-client-4.0.1/index.html > > yes i know but i cant use http client for version problem.httpclient > want java 5 and i have to use java 1.4 3.x should run on 1.4 and it has more or less the same functionality. The API may not be quite as OO'ish, but ... Arne
From: Lew on 1 Aug 2010 09:17 gian wrote: >> yes i know but i cant use http client for version problem.httpclient >> want java [sic] 5 and i have to use java [sic] 1.4 Just out of curiosity, why are you stuck on an obsolete version? What is the client's reasoning? -- Lew
From: gian on 1 Aug 2010 09:47 On 1 Ago, 15:17, Lew <no...(a)lewscanon.com> wrote: > gian wrote: > >> yes i know but i cant use http client for version problem.httpclient > >> want java [sic] 5 and i have to use java [sic] 1.4 > > Just out of curiosity, why are you stuck on an obsolete version? What is the > client's reasoning? > > -- > Lew websphere AS
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 Prev: Identifying the Content-Type of a file for HttpURLConnection Next: Another Servlet/JSTL question |