1

I saw here How to add parameter in httpurlconnection android the following :

            conn.setRequestProperty("Content-Type","multipart/form-data;boundary=" + boundary);

I didn't find at any place if I can split it and add the boundary by using setRequestProperty :

conn.setRequestProperty("Content-Type","multipart/form-data");
conn.setRequestProperty("Content-Type","boundary=" + boundary);

It didn't work, can you please advise?

Thanks!

Community
  • 1
  • 1
user1386966
  • 3,302
  • 13
  • 43
  • 72

0 Answers0