• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

HttpClient and message multipart/related

  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,,
anyone know if HttpClient API supports message multipart/related?.
what I've seen on various forums is that HTTP Client doesn't support multipart/related content-type, but, Is there another way?

thanks
 
Greenhorn
Posts: 11
Android Scala Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you referring to Apache HTTPClient. In apache HTTP client you can create multipart entity body using the MultipartRequestEntity class. Please refer to JavaDoc, it also contains a sample usage
 
Jhonnathan Emilio Cardona Saineda
Ranch Hand
Posts: 38
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, but I need support message multipart/related and the javadoc says RFC1867 multipart/form-data.


Sorry for my English,
 
Jhonnathan Emilio Cardona Saineda
Ranch Hand
Posts: 38
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
with a class that extends MultipartRequestEntity, I overwrited the method getContentType().
It works,
 
You save more money with a clothesline than dozens of light bulb purchases. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!