You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (Jira)" <ji...@apache.org> on 2021/09/11 15:31:00 UTC
[jira] [Updated] (HTTPCLIENT-751) ProtocolSocketFactory to upgrade
an unsecured connection to secured via TLS
[ https://issues.apache.org/jira/browse/HTTPCLIENT-751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski updated HTTPCLIENT-751:
-----------------------------------------
Component/s: (was: HttpClient (classic))
Fix Version/s: (was: Future)
5.2-alpha1
> ProtocolSocketFactory to upgrade an unsecured connection to secured via TLS
> ---------------------------------------------------------------------------
>
> Key: HTTPCLIENT-751
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-751
> Project: HttpComponents HttpClient
> Issue Type: New Feature
> Environment: Coded for Java 1.4.2, but interested parties should be able to make it work for less than that.
> Reporter: Stephen O'Neil Butler
> Priority: Minor
> Fix For: 5.2-alpha1
>
> Attachments: TLSProtocolSocketFactory.java
>
>
> HTTP allows a client to upgrade its connection from an unsecured one to a secured one via the Upgrade header. This protocol component implements a mandatory upgrade. From RFC2817, section 3.2:
> >> OPTIONS * HTTP/1.1
> >> Host: example.bank.com
> >> Upgrade: TLS/1.0
> >> Connection: Upgrade
> >>
> << HTTP/1.1 101 Switching Protocols
> << Upgrade: TLS/1.0, HTTP/1.1
> << Connection: Upgrade
> <<
> -- send and complete the TLS handshake
> -- server answers the original OPTIONS request
> << HTTP/1.1 200 OK
> << Date: Sun, 17 Feb 2008 17:23:35 GMT
> << Server: Apache
> << Content-Length: 0
> << Content-Type: text/plain
> <<
> My reason for developing this protocol socket factory was to support secure IPP over the standard IPP port.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org