users@jersey.java.net

[Jersey] Re: Bad Checksum when using PUT

From: stlecho <stlecho_at_gmail.com>
Date: Wed, 26 Oct 2011 02:55:48 -0700 (PDT)

When using the underneath shown code, the call returns a correct result.



> URL url = new
> URL("https://ws.irisnetlab.be/waws/nova/psk?targetID=998877");
> HttpURLConnection connection = (HttpURLConnection) url.openConnection();
> connection.setDoOutput(true);
> connection.setInstanceFollowRedirects(false);
> connection.setRequestMethod("PUT");
> connection.setRequestProperty("Content-Type", "application/xml");
>
> OutputStream os = connection.getOutputStream();
> os.flush();
>
> InputStream is= connection.getInputStream();
> String myString = convertStreamToString(is);
> connection.disconnect();
>

--
View this message in context: http://jersey.576304.n2.nabble.com/Bad-Checksum-when-using-PUT-tp6929189p6932113.html
Sent from the Jersey mailing list archive at Nabble.com.