simple problem (am confused I could not find an answer here):
I want to do a Multipart encoded HTTP POST from my AppEngine Java servlet (outbound). AppEngine does not seem to support the Apache HTTP lib and does not offer an API themselves (only setPayload(byte[])
), but I would like to avoid implementing a Multipart encoding myself. So:
Is there a way to send Multipart HTTP bodies from AppEngine Java?
Is there a library that encodes such a body into a
byte[]
array? (Note thatMultiPartEntity.getContent()
is not implemented.) Then I could use the AppEngine internal URLFetch API (which I would prefer because of the async calling capabilities).