You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2005/01/26 23:02:19 UTC

DO NOT REPLY [Bug 33251] - path encoded jsessionid cannot be set

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33251>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33251





------- Additional Comments From olegk@apache.org  2005-01-26 23:02 -------
Peter,

I tried to reproduce the problem by using the following code:
===============================================
HttpClient httpclient = new HttpClient();
GetMethod httpget = new GetMethod(
"http://localhost/stuff;jsessionid=E15EF639D4E8C44E5EB3CDD606EC2601.jvmRoute?name=value");
NameValuePair[] nvp = {new NameValuePair("name", "value")};
httpget.setQueryString(nvp);
try {
  httpclient.executeMethod(httpget);
  System.out.println(httpget.getResponseBodyAsString());
} finally {
  httpget.releaseConnection();
}
===============================================

And this is the wire log I got as a result
===============================================
[DEBUG] header - ->> "GET
/stuff;jsessionid=E15EF639D4E8C44E5EB3CDD606EC2601.jvmRoute?name=value
HTTP/1.1[\r][\n]"
[DEBUG] header - ->> "User-Agent: Jakarta Commons-HttpClient/3.0-beta1[\r][\n]"
[DEBUG] header - ->> "Host: localhost[\r][\n]"
[DEBUG] header - ->> "[\r][\n]"
[DEBUG] header - -<< "HTTP/1.1 404 Not Found[\r][\n]"
[DEBUG] header - -<< "Date: Wed, 26 Jan 2005 21:48:41 GMT[\r][\n]"
[DEBUG] header - -<< "Server: Apache/2.0.52 (Fedora)[\r][\n]"
[DEBUG] header - -<< "Content-Length: 331[\r][\n]"
[DEBUG] header - -<< "Connection: close[\r][\n]"
[DEBUG] header - -<< "Content-Type: text/html; charset=iso-8859-1[\r][\n]"

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /stuff;jsessionid=E15EF639D4E8C44E5EB3CDD606EC2601.jvmRoute
was not found on this server.</p>
<hr>
<address>Apache/2.0.52 (Fedora) Server at localhost Port 80</address>
</body></html>
===============================================

As far as I can tell everything looks okay. Am I missing something?

Oleg

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org