Hi friends,
Problem still exists... Unforntunately I do not have a public URL. Could you
share you HTTP POST request code.
Lines with Content-Type, Content-Length etc are commented out because I
tried them but they didn't help. Event if I set them, server receives GET
with content-length=-1.
+
response.getStatusLine().getStatusCode());
}
I just can't understand why other POSTs work... Looks like something's wrong
with my servlet
2009/4/9 Andrey Razumovsky razumovsky.and...@gmail.com
Hi friends,
Problem still exists... Unforntunately I do not have a public URL. Could
you share you
-
response code +
response.getStatusLine().getStatusCode());
}
I just can't understand why other POSTs work... Looks like something's
wrong with my servlet
2009/4/9 Andrey Razumovsky razumovsky.and...@gmail.com
Hi friends,
Problem still exists... Unforntunately
/* works! Thanks!
2009/4/9 Mark Thomas ma...@apache.org
Andrey Razumovsky wrote:
Finally I did it! What was to be done is to change servlet mapping
url-pattern//url-pattern
to
url-pattern/DoveServlet/url-pattern
Did you try:
url-pattern/*/url-pattern
?
Mark
Hi Chris,
I've found that my servlet is receiving request GET instead-of POST. Maybe
this is causing the problem.. I used to get 200, but now when I removed
doGet(...) I get 405. Maybe I need to tune Tomcat somehow so that it could
receive POST?
07.04.2009 12:36:37 RequestDumperValve invoke :
I figured out that the problem is in client side... When I fire POST request
from HTML, it is received well... I've doublechecked my connection code - it
seems all right. Can anyone help me here?
message). And mainly, servlet's input stream is
empty.
When I do POST from simple HTML,everything's fine.
Hope you'll help me to figure out who's replacing request's header and
content
Andrey
2009/4/7 Caldarale, Charles R chuck.caldar...@unisys.com
From: Andrey Razumovsky [mailto:razumovsky.and
+ pack.getPath() + transfered);
}
}
2009/4/7 Caldarale, Charles R chuck.caldar...@unisys.com
From: Andrey Razumovsky [mailto:razumovsky.and...@gmail.com]
Subject: Re: Cannot read httpservlet's inputstream
I'm sending POST request from Java (see code in my first message)
to Tomcat
to upload a file. As much as you are trying
to avoid it, you are probably going to have to invest some quality time
in the libraries, etc. that properly support multipart file upload
requests.
--David
Andrey Razumovsky wrote:
Sure.
That's where my investigations lead me to:
I'm sending
Hi list,
I'm pretty sure I'm missing something obvious, but I just can't understand
what the root of problem is.
I try to send file from java to Tomcat6's http servlet. I need to send file
alone (and probably some parameters in request), so I don't wanna mess with
multipart libraries
10 matches
Mail list logo