Howdy,

>The servlet that make de POST have this code
>
>     {
>            String event;
>            event = request.getParameter("event-source");
>            URL url = new URL( "http", "localhost", 8888,
"/servletDEST");
>            URLConnection connection = url.openConnection();
>            ((HttpURLConnection)connection).setRequestMethod( "POST");
>            connection.setDoInput( true);
>            connection.setDoOutput( true);
>            OutputStreamWriter out = new
>OutputStreamWriter(connection.getOutputStream());
>            out.write( "event-source="+evento+"&event-name="+comando);
>            out.write( "\r\n");
>            out.flush();
>            out.close();

Is there a connect() call somewhere in there?  After openConnection and
setting your various parameters, but before getting the output stream,
call URLConnection#connect() explicitly.  Maybe that'll make a
difference.

If all you're doing is writing the event-source and event-name
parameters on the URL, why not do a GET request?

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to