-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andrey,
On 4/7/2009 10:12 AM, Andrey Razumovsky wrote:
> HttpURLConnection connect = (HttpURLConnection)
> url.openConnection();
> connect.setRequestMethod("POST");
> connect.setDoInput(true);
> connect.setDoOutput(true);
I have code that makes an HTTP connection, and I have the
setDoOutput(true) /before/ setRequestMethod("POST"). I'm not sure if
that is significant.
Also, you mentioned that Content-Type and Content-Length were being set
to "the defaults". I don't see any setting of these header fields in
your code. In your original code snippet, they are commented-out.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAknbnVoACgkQ9CaO5/Lv0PAZbACfZzbpItCeFngJPZZnpgVgNJeq
u9kAnixPyxxolDv2GGNhmFe1Q+6/QT3Q
=o8ko
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]