users@jersey.java.net

[Jersey] Re: Post using jersey client

From: <sree_at_work_at_yahoo.com>
Date: Thu, 27 Jan 2011 22:06:07 +0000 (GMT)

Hi Pavel,

Thank you for the tip.
I used it.

Hi Paul,

Thank you for the tip on content-type.
I got rid of date, length by setting up new FormDataContentDisposition.

Still, my request fails.
And found out that, the header is stripping the spaces in the
'Content-Type'.
For a successful request, I need a space after semi-colon.
Programmatically, I am setting exact string but the space is gone when
seen on wire ?


TCPMon:
==================
Content-Type:
multipart/form-data;boundary=----------------------------d8b4f160da95


Minor:
Content-Type: application/octet-stream
Content-Disposition: form-data;
filename="northern-lights-show_29575.jpg"; name="image_upload"

'name' is appended at the end all the time, despite an over of
ContentDisposition ?



Any pointers, please ?

Thanking you, in advance.

With Regards
Sree