[ 
https://issues.apache.org/jira/browse/THRIFT-3811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15347634#comment-15347634
 ] 

James E. King, III commented on THRIFT-3811:
--------------------------------------------

It looks like I provided you with some bad guidance initially.  THttpServer is 
a transport built on a socket, not a server.  The name is misleading and really 
should be changed.

I believe what you want to do is create a TSSLServerSocket as you have in 
https_server.cpp, and then create a TServer variant (TSimpleServer, 
TThreadedServer, etc..) using the THttpServerTransportFactory for the input and 
output factory, the sslSocket transport, and the TProcessor of your choice, and 
then call serve().  This will allow you to create a TLS endpoint that accepts 
connections and communicates using HTTP protocol, so essentially HTTPS.

On the client side you want to use a TSSLSocket, then create a THttpClient 
transport using that socket, then create a service client using that transport.

Thanks,

Jim

> HTTPS Support for C++ applications
> ----------------------------------
>
>                 Key: THRIFT-3811
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3811
>             Project: Thrift
>          Issue Type: Question
>          Components: C++ - Compiler, C++ - Library
>    Affects Versions: 0.9.3
>         Environment: Linux
>            Reporter: ramesh
>            Assignee: James E. King, III
>            Priority: Minor
>         Attachments: https_client.cpp, https_server.cpp
>
>
> Hi All,
> One of application want to use https feature in c++ thrift application.
> Gone through the headers related to http transport in thrift package and i 
> haven't found any code or documentations related to https.
>  
> https support for c++ server/client available or not ?
> If supports please provide info to use.
> Regards
> Ramesh



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to