You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Manav Raghuwanshi (JIRA)" <ji...@apache.org> on 2017/09/08 18:39:00 UTC
[jira] [Commented] (THRIFT-3054) Add custom HTTP header support to
THttpClient / THttpTransport
[ https://issues.apache.org/jira/browse/THRIFT-3054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16159087#comment-16159087 ]
Manav Raghuwanshi commented on THRIFT-3054:
-------------------------------------------
Any updates on this issue? I want to send custom headers to the server but C++ thrift doesn't have that functionality.
> Add custom HTTP header support to THttpClient / THttpTransport
> --------------------------------------------------------------
>
> Key: THRIFT-3054
> URL: https://issues.apache.org/jira/browse/THRIFT-3054
> Project: Thrift
> Issue Type: Improvement
> Components: C++ - Library
> Affects Versions: 0.9.2
> Reporter: Tim Stavenger
>
> I'm trying to call from C++ into a HTTP Thrift server (using Java TServlet) where the servlet is secured with HTTP basic auth. The C++ THttpClient doesn't appear to support the Authentication header, or the ability to add custom headers. The headers it sends in the request are hard coded in THttpClient::flush(), with no ability to add custom defined headers.
> Other languages already support this, including Java, JavaScript, Go Lang (at least from JavaDocs and other logged JIRA issues this appears to be the case).
> Could we get the feature added in the C++ library?
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)