November 2007
8 posts
Get Axis to log all Http Request
Put log4j.category.org.apache.axis.transport.http.HTTPSender=debug,stdout in the log4j configuration.
Launching links from office documents
If you click a link form a MS office document (excel, word etc) and that link gives you back a HTTP 302 response I found that two requests were made for the destination of the 302.
i.e Fiddler logs
302 http://www.myserver/mypage (gives back 302 to http://www.myserver/myloginpage)
200 http://www.myserver/myloginpage
200 http://www.myserver/myloginpage
Strangely this didn’t...
Wondering where the plugin config goes on...
The websphere apache plugin gets written to /opt/Websphere/AppServer/config/cells/plugin-cfg.xml
IBM Websphere Application Server Process id
Finding the process of a Websphere application server can be hard work since it just shows up as a java process. The good news is that the process id (pid) of a Websphere application server is written into a folder in the logs directory with the format {application-server-name}.pid you can cat that file to find the process number. If this file is there it means the process is still running even if...
Run Javascript from your browser address bar.
By writing javascript: followed by the java script you want to execute in your browser address bar you can execute java script. For example javascript:alert(new Date()) will bring a alert with the current time set. Using this method you can do things like view cookies set in the current document by using javascript:alert(document.cookie) .
Websphere requestURL with ? in path
I was trying to use friendly URLs in Websphere where the path includes encoded ‘?’ (Hex %3F). Calling HTTPServletRequest.getRequestURL() on Websphere only returns the path up to the first %3F.
This means that the value returned for a URL such as http://myserver/mypage/what-u-say%3F/id/123/videodetail.do would be http://myserver/mypage/what-u-say .
It looks like this method is performing...
IBM Websphere Apache restart
To restart websphere apache server go into IBNIHS/bin directory. In our environments this is under /opt/. Run ./apachectl stop or /apachectl start to stop or start the apache box.
IE cookies and framesets
Got caught out by this today http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q323752 . We were using a nested frameset where the outer frameset was a different domain from the inner one. One to watch out for if your cookies start to disappear in IE. I’m not sure how firefox handles this. Fixed it by adding the header like they suggest in the link.