Jump to content
alank2

TNetHttpClient CustomHeaders - can you set them all from a string?

Recommended Posts

I am familiar with setting them as an array like this:

 

nhc->CustomHeaders["Authorization"]="mydata";

 

But could all of them be set from a string formatted as http headers like this

 

authorization:mydata

another:value

 

As a single string with a newline between them?

 

If so, how?  I see a Data, but it is a const void.  (I am using cppbuilder)

 

Edited by alank2

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×