"/*" works! Thanks!
2009/4/9 Mark Thomas
> Andrey Razumovsky wrote:
> > Finally I did it! What was to be done is to change servlet mapping
> >
> > /
> > to
> > /DoveServlet
>
> Did you try:
> /*
> ?
>
> Mark
>
>
>
> -
Finally I did it! What was to be done is to change servlet mapping
/
to
/DoveServlet
so somewhy POST to servlet mapped to all urls does not work. Now I need URL
like /Dove/DoveServlet instead-of /Dove, but I'll survive this :)
2009/4/9 Andrey Razumovsky
> Same evil happens when I try
ransfered -
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
> Hi friends,
>
> Problem still exists... Unforntunately I do not have a pu
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. Chang
aren't using
> HttpURLConnection correctly 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
getResponseCode());
}
else {
System.out.println("file " + pack.getPath() + " transfered");
}
}
2009/4/7 Caldarale, Charles R
> > From: Andrey Razumovsky [mailto:razumovsky.and...@gmail.com]
> > Subject: Re: Cannot read httpserv
my second 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
> > From: Andrey Razum
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?
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 : REQ
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 (commons-file
10 matches
Mail list logo