|
Posted
about 1 year
ago
by
ASF subversion and git services
Commit b7ece752eb52450c6190ae002ae84293ac56b5a9 in httpcomponents-client's branch refs/heads/HTTPCLIENT-2361 from Oleg Kalnichevski [ https://gitbox.apache.org/repos/asf?p=httpcomponents-client.git;h=b7ece752e ] HTTPCLIENT-2361: Tolerate multiple Read more
|
|
Posted
about 1 year
ago
by
Oleg Kalnichevski
abernal You are absolutely correct. There should be only a single `Cookie` header and our own cookie policy should generate only a single one but we should not be stopping the users from sticking more `Cookie`s into a request if they are so Read more
|
|
Posted
about 1 year
ago
by
Arturo Bernal
Hi shpelda RFC 6265 Section 5.4 clearly states that user agents MUST NOT attach more than one Cookie header field. In other words, all cookie pairs should be concatenated into a single Cookie header. Using getHeader(name) (which assumes only one Read more
|
|
Posted
about 1 year
ago
by
shpelda
Using multiple Cookie headers leads to exception. In my case they were set by apache-cxf:4.0.1, using WebClient.getConfig(cxfClientProxy).getHttpConduit().getCookies().put()
Caused by: org.apache.hc.core5.http.ProtocolException: multiple 'Cookie'
Read more
|
|
Posted
about 1 year
ago
by
ASF subversion and git services
Commit 9b93b0309c05a697c13cc52d6f55b4c7afd49a08 in httpcomponents-client's branch refs/heads/dependabot/maven/com.googlecode.maven-download-plugin-download-maven-plugin-1.13.0 from Istvan Toth [ https://gitbox.apache.org/repos/asf?p=httpcomponents-client.git;h=9b93b0309 Read more
|
|
Posted
about 1 year
ago
by
Hiran Chaudhuri
Now it is getting interesting. I agree the code looks promising. Here is a small Netbeans/Maven project I created (The project is zipped and attached to this issue.). log4j2 is configured such that httpclient logs all wire communication to the Read more
|
|
Posted
about 1 year
ago
by
Hiran Chaudhuri
rfc6266 support in MIME multipart
|
|
Posted
about 1 year
ago
by
Arturo Bernal
For what I understand, I would say something like this in FormBodyPartBuilder:
if (this.body.getFilename() != null) {
String filename = this.body.getFilename();
if (canEncodeToISO_8859_1(filename)) {
Read more
|
|
Posted
about 1 year
ago
by
Hiran Chaudhuri
From the enum HttpMultiPartMode there exist three settings. LEGACY Here I saw UTF-8 characters in the filename header, which the server dislikes
STRICT Here again I saw UTF-8 characters in the filename header. The server still does not like this.
Read more
|
|
Posted
about 1 year
ago
by
Hiran Chaudhuri
rfc6266 support in MIME multipart
|