-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

All,

I've got a perfect use-case for HTTP trailers but it doesn't seem like
any existing client (e.g. HttpURLConnection, HttpClient) has support
for them on the /sending/ side.

HttpURLConnection doesn't have a way (that I can see) to fetch
trailing headers, but it may just be that you have to consume the
response and then check the headers (similar to what you'd do in a
Servlet when the client actually sends trailing headers to the server).

HttpClient allows you to get the trailing headers from a response in a
very awkward way by reading them from the ChunkedInputStream which is
buried a few levels deep, evidently.

But neither seem to have a way to actually *send* headers to the server.

Has anyone ever actually done this from a Java-based client? I'm
currently using my own wrapper around HttpURLConnection (because
HttpClient seemed to heavy for my purposes) and it's been working
great for a few years. I'd like to support a streaming mode plus
trailer headers with it, and I'd prefer not to dump HttpURLConnection
and replace it with low-level socket work because them I'll have to do
a whole bunch of work to reproduce what HttpURLConnection is already
providing (e.g. TLS, auto-redirects, etc.).

Any ideas from the community?

Thanks,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVMoQlAAoJEBzwKT+lPKRYIJIP/RaTgeS/0IcrB6lw5eheBhpu
69IBNSi6E0doR+TmxjvsENlCKOpZcepZ5kqUfGTh704hJJMHXxDDoPUb0L02GZFG
jFhZIAitZh2249e7msBw5zgI5+xcaPGYKPbAHIZepxXj/kj+OdybNdNrKvMNJRNY
yDYQJYxn6HSxLvBqSd3Fka8phEJVlhn70xgtp/8H7EvNI1zohPxj6g3b7cfKmf2h
w2oqWC4cOvqClA6/F8A8avGlU1LYrTKkLruWEVRqTsTYbMaHUBiLidgqKcLC1nOE
JW+zzEWjox3EaY/7OraAUNnlN4xlko8lLBWn1YxPf8iv45avaA/sGyyIUaqzRNFh
SIBUlEOL0ldG3yk7Odr7U5f9DAnRFgb2nDm2c/gzBPfxwYx/1CP73MFv+rWA+ASF
31BzqelbiIgnShiDY1Lq/FkXFlTfiaYrjqxNxE4YawyuCML34rPM+zcoh4nmKS43
5Wc5nxCJ9OX/JhN7aTxgkdBY19ad72C5aVoyojzYQm42gIhe6aBlZwpIFFmNeZhW
k01JbwFpG6i/Z8K428MK/aI7O6yas6wWbQf6qtmyG2d2zh0u21oSXQ5top/AnfgA
c+kzRUaBmECUN+Ax5rqsxahjON7aMV9JU0IWf6yI39OsMDhmljQ5+hSb4tsDFV5k
h5np8G3cXN/rdmX4Dmb2
=69hw
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to