HTTPS POST (SSL) with Multipart - HTTPURLConnection or HTTPClient(Apache library)

by Prabhu » Tue, 25 Jan 2011 02:51:06 GMT

Sponsored Links
 Hi All,

I am developing a Android Client which will ipload files to a server
using HTTPS POSRT with Multipart.
As i have read  there are two ways to do this:

1. Use HttpURLCoennection and embed the multipart data and then send
2. Use Apache provided mime for multipart and then use HTTPClient.

What is the recommeneded way from above.

I have read that

HTTPURLConnection is buggy in android
and the post implementatino is not that clean as we have to literally
create the data stream with boundaries.

HTTPClient: the code is cleaner and fewer :) , but we have add extra
jar file for multipart support.

Any recommenation in this will be helpful.



Other Threads

1. My Eclipse 3.5 always lag and have to force close - why?

I'll have to explicitly 100% agree with Bob here:

Until around mid May I was using the previous model MacBookPro with 4GB dual core (and Ubuntu) for my Android development and after a fair amount of tweaking I could barely run Eclipse for a week. After switching to the new MacBookPro with 8GB and quad core, Eclipse is no longer a real issue. Sure an SSD would be nice, but no deal breaker (not enough to pay more for a smaller disk). Good luck / Jonas --

2. cara ganti keyboard swype

misi suhu2..
cara ganti keyboard swype gimana yah?
kan kalo keyboard standard, tinggal tekan dan tahan tombol yang ada di
pojok kiri bawah. trus tinggal ganti deh di input methods, kalo swype
gimana yah?

"Indonesian Android Community [id-android]" 

3. Where permissions has to declare in a application.

4. Where permissions has to declare in a application.

5. Bluetooth working only from command line after porting

6. AndroidTestCase fails with dependency on third project

7. Setting email jadi yahoo.