How to obtain just a single form field from an HttpResponse in Java and write it to a file?
问题 I am calling a client's download service which sends back MIME data and attempting to save a zip file. The service does not simply return the file by itself but several other MIME fields as well. So when I open the inputstream using entity.getContent() I end up writing all of this data to my zip file whereas I only wish to write one part "Payload". I have searched and do not see anyway to obtain just the one individual part from the content. Code is below: HttpResponse response = services