Re: I'm using jdk1.6 + tomcat 7.0.23

2015-06-17 Thread chedana jayasinghe
Christopher, *Is there a big change of how tomcat manage sessions, in versions before tomcat 6. still I'm little confused about the behavior of my application * On Thu, Jun 18, 2015 at 11:39 AM, chedana jayasinghe < chedanajayasin...@gmail.com> wrote: > request goes to a doPost method of a se

Re: FormAuthenticator, Tomcat restart

2015-06-17 Thread Leonid Rozenblyum
Thank you, Christopher! On Thu, Jun 11, 2015 at 4:34 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Leonid, > > On 6/11/15 4:18 AM, Leonid Rozenblyum wrote: >> Hello. Just to double-check. By writing own login-handler, do you >> mean, overriding FormAuthent

Re: I'm using jdk1.6 + tomcat 7.0.23

2015-06-17 Thread chedana jayasinghe
request goes to a doPost method of a servlet and there it used to return some values in the response, and there is a one filter which encode request's characters to UTF-8. But how come it effects the session last accessed time get updated, because as to my knowledge It is monitored by the servlet

Re: redirect to website not working

2015-06-17 Thread Ankur Gupta
*Fiddler Error:* # Result Protocol HostURL BodyCaching Content-Type Process CommentsCustom 2 302 HTTPxx.xxx.xx.81:81/abc/abc/a.asp 191 privatetext/html iexplore:6656 3 302 HTTPxx.xxx.xx.99:8080 /examples/sm

Re: OT: Random Form Resubmissions

2015-06-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jerry, On 6/17/15 11:55 AM, Jerry Malcolm wrote: > OT: I have a simple 'contact-us' webapp that has been running for > years. I'm not having any problems with it directly. However, > periodically, I get resubmissions of the form from the client

Re: logging input and output HTTP message payload

2015-06-17 Thread Mark Eggers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/17/2015 11:32 AM, André Warnier wrote: > Just to make sure.. > > Milinda Perera wrote: >> Hi all, >> >> Thanks for suggestions, >> >> Actually I want to log all HTTP / HTTPS requests from client >> applications to my Tomcat server and the Respo

Re: logging input and output HTTP message payload

2015-06-17 Thread André Warnier
Just to make sure.. Milinda Perera wrote: Hi all, Thanks for suggestions, Actually I want to log all HTTP / HTTPS requests from client applications to my Tomcat server and the Response sent back to the client. And logging requests and payloads are not target specific application running in the

Re: logging input and output HTTP message payload

2015-06-17 Thread Frederik Nosi
If you have this: 1) Tomcat listening in HTTP, not HTTPS 2) ssh access to the machine 3) administrator access to the machine and are on Linux (or Unix in general, but my command is linux specific) do this as root: tcpdump -nnpi any -s0 -vvv -w /tmp/dump.pcap port 8080 After the request you

Settings when SSL terminates on the front-end

2015-06-17 Thread Jeffrey Janner
I've been deploying letting Tomcat do it all when it came to connectors and SSL, with the app forcing everything to SSL in the section. Now I'm setting up a haproxy front-end that will both terminate the SSL and take care of the redirect from HTTP to HTTPS for me and tomcat only running a sta

Re: logging input and output HTTP message payload

2015-06-17 Thread Milinda Perera
Hi all, Thanks for suggestions, Actually I want to log all HTTP / HTTPS requests from client applications to my Tomcat server and the Response sent back to the client. And logging requests and payloads are not target specific application running in the Tomcal server, which means all the request t

Re: [OT] Random Form Resubmissions

2015-06-17 Thread Andy Wang
On 06/17/2015 12:43 PM, Caldarale, Charles R wrote: From: Jerry Malcolm [mailto:techst...@malcolms.com] Subject: OT: Random Form Resubmissions I have written defensive code in my webapp to detect this situation and handle it. So it's not a critical problem now. But it just frustrates me tha

RE: [OT] Random Form Resubmissions

2015-06-17 Thread Caldarale, Charles R
> From: Jerry Malcolm [mailto:techst...@malcolms.com] > Subject: OT: Random Form Resubmissions > I have written defensive code in my webapp to detect this situation and > handle it. So it's not a critical problem now. But it just frustrates > me that I have no clue what is going on. And I'm c

OT: Random Form Resubmissions

2015-06-17 Thread Jerry Malcolm
OT: I have a simple 'contact-us' webapp that has been running for years. I'm not having any problems with it directly. However, periodically, I get resubmissions of the form from the client's computer, sometimes randomly once a day for several days/weeks, and sometimes once or twice two week

Re: redirect to website not working

2015-06-17 Thread André Warnier
Ankur Gupta wrote: I had installed fiddler and deactivated ie stupid feature . how can I share the result of fiddler to you if the system dosent allow attachments? Well, on this list here we try to help, and we provide tips. But we do not do all the work for you, and you are expected to do som

Re: redirect to website not working

2015-06-17 Thread chris derham
> ... how can I share > the result of fiddler to you if the system dosent allow attachments? Ankur, Copy/paste the text of the raw response into an email should do it Chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apa

Re: redirect to website not working

2015-06-17 Thread Ankur Gupta
I had installed fiddler and deactivated ie stupid feature . how can I share the result of fiddler to you if the system dosent allow attachments?

Re: redirect to website not working

2015-06-17 Thread André Warnier
Ankur Gupta wrote: Log says this: xx.xxx.xx.81 - - [17/Jun/2015:12:51:47 -0400] "GET /examples/smstrial.jsp?mobileNumber=0123456789 HTTP/1.1" 302 - xx.xxx.xx.81 - - [17/Jun/2015:12:52:16 -0400] "GET /examples/smstrial.jsp?mobileNumber=0123456789 HTTP/1.1" 302 - xx.xxx.xx.81 - - [17/Jun/2015:12

Re: logging input and output HTTP message payload

2015-06-17 Thread André Warnier
Frederik Nosi wrote: It helps only with HTTP though, no HTTPS or at least not easily. While we are at this, are you trying to debug a SOAP / REST connection from your application running on Tomcat to another server or a connection coming from outside to your Tomcat? On 06/17/2015 11:16 AM,

Re: logging input and output HTTP message payload

2015-06-17 Thread Frederik Nosi
It helps only with HTTP though, no HTTPS or at least not easily. While we are at this, are you trying to debug a SOAP / REST connection from your application running on Tomcat to another server or a connection coming from outside to your Tomcat? On 06/17/2015 11:16 AM, Mark Thomas wrote: On

Re: redirect to website not working

2015-06-17 Thread André Warnier
Hi. Ankur Gupta wrote: Log says this: xx.xxx.xx.81 - - [17/Jun/2015:12:51:47 -0400] "GET /examples/smstrial.jsp?mobileNumber=0123456789 HTTP/1.1" 302 - xx.xxx.xx.81 - - [17/Jun/2015:12:52:16 -0400] "GET /examples/smstrial.jsp?mobileNumber=0123456789 HTTP/1.1" 302 - xx.xxx.xx.81 - - [17/Jun/20

Re: redirect to website not working

2015-06-17 Thread Ankur Gupta
Log says this: xx.xxx.xx.81 - - [17/Jun/2015:12:51:47 -0400] "GET /examples/smstrial.jsp?mobileNumber=0123456789 HTTP/1.1" 302 - xx.xxx.xx.81 - - [17/Jun/2015:12:52:16 -0400] "GET /examples/smstrial.jsp?mobileNumber=0123456789 HTTP/1.1" 302 - xx.xxx.xx.81 - - [17/Jun/2015:12:53:05 -0400] "GET /e

Re: redirect to website not working

2015-06-17 Thread André Warnier
Ankur Gupta wrote: xx.xx.xx.81 has classic asp page sms.asp having code: <%@ language=vbscript%> <% mobileNumber="0123456789" Response.redirect(" http://xx.xxx.xx.99:8080/examples/smstrial.jsp?mobileNumber="&; mobileNumber) %> Linux server(xx.xxx.xx.99:8080)

Re: logging input and output HTTP message payload

2015-06-17 Thread Mark Thomas
On 17/06/2015 10:10, Milinda Perera wrote: > Hi, > > I need to log HTTP payload content for debugging purposes. Use Wireshark. That has the added benefit of not having any unwanted side-effects on your application. Mark - To u

logging input and output HTTP message payload

2015-06-17 Thread Milinda Perera
Hi, I need to log HTTP payload content for debugging purposes. Following are my findings: 1. Using HTTP message content Access Log Valve [1] and Extended Access Log Valve [2] But it does not provide functionality to log HTTP payload 2. Then I tried by changing *org.apache.coyote.level

Re: redirect to website not working

2015-06-17 Thread Ankur Gupta
xx.xx.xx.81 has classic asp page sms.asp having code: <%@ language=vbscript%> <% mobileNumber="0123456789" Response.redirect(" http://xx.xxx.xx.99:8080/examples/smstrial.jsp?mobileNumber="&; mobileNumber) %> Linux server(xx.xxx.xx.99:8080) with apache tomcat an

Re: redirect to website not working

2015-06-17 Thread André Warnier
Ankur Gupta wrote: Sorry if I was unable to make you understand . At my workplace we have one production server which have iis and classic asp pages are deployed. Ok, that I understand. Server-A = IIS + whatever Now as per the requirement (of which we do not have a copy, so we know nothing ab

Re: redirect to website not working

2015-06-17 Thread Ankur Gupta
Sorry if I was unable to make you understand . At my workplace we have one production server which have iis and classic asp pages are deployed. Now as per the requirement , we have to send SMS to the customers, so , a request from production server say A(having asp page) is sent to Linux server hav

Re: redirect to website not working

2015-06-17 Thread André Warnier
Ankur Gupta wrote: I have apache tomacat 7.0.61 and linux server 6.1 enterprise. There is a requirment of sending sms to the customers, but the request to send sms to the vendor is throught this sftp linux server. Now, when i redirect to the page it does not respond.But when i access the same web