Overview
Features
Download
Documentation
Community
Add-Ons & Services

How to set fields in HTTP header using POCO?

Please post support and help requests here.

How to set fields in HTTP header using POCO?

Postby HemDutt » 25 Jun 2014, 14:15

I need to set some custom http header fields for authentication in my request to server.
For example , like in Objective-C this can be done like

Code: Select all
[request addValue:VALUE forHTTPHeaderField:@"Field You Want To Set"];


How can I accomplish something similar using POCO?
HemDutt
 
Posts: 11
Joined: 24 Jun 2014, 14:21

Re: How to set fields in HTTP header using POCO?

Postby gregee123 » 26 Jun 2014, 00:30

httprequest.add("Name-of-Header", "Value");
currently using: 1.5.3
gregee123
 
Posts: 24
Joined: 29 Mar 2013, 12:11

Re: How to set fields in HTTP header using POCO?(Fixed)

Postby HemDutt » 26 Jun 2014, 08:07

Thanks Gregee.
HemDutt
 
Posts: 11
Joined: 24 Jun 2014, 14:21


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron