I may have figured out part of the problem. I was initially trying to store my complete URL in the form of:
String strURL = "http://www.somename.com/someMethod?cmd=auth&user=name&pass=somePass"; After I change the URL to not contain any of the parameters, and add the parameters via the setQueryString(), I get some response. Now this leads to the next question. My application does a browser check internally. Is there a way to change the User-Agent from 'Jakarta HTTP Client/2.0.0a1' gracefully? I need to "trick" the application into thinking I am logging in with IE. Thanks, Randy James -----Original Message----- From: James, Randy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 11:40 AM To: '[EMAIL PROTECTED]' Subject: HTTP Post with cookie Hello all, I am trying to write a "polling" application using HTTPClient that will basically "surf" an app behind the scenes. Currently, I need to do a HTTP Post that logs into our application, then hit a few of the pages within the app. It's all java/jsp based. The difficulty I'm having is with the cookie. Upon log in, a session id is assigned into a cookie. Then, once authenticated by a authentication servlet, the browser redirects to another page via another servlet, which matches the session id in memory to the one passed in the cookie. I need to pass the cookie contents unaltered with each request. Can this be done? Thanks, Randy James -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
