Lantronix Developer Forums  

Go Back   Lantronix Developer Forums > Evolution SDK > API

API Use this forum for questions and comments regarding specific functions in the Evolution SDK API.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-08-2017, 11:45 PM
nbrownett nbrownett is offline
Member
 
Join Date: Mar 2017
Posts: 10
Default HttpGetHeaders

How does one retrieve the number of headers returned from a call to HttpGetHeaders?

This function is unusable with out this information.

Using EVO XPort-Port SDK 5.4.0.0.R7.
Reply With Quote
  #2  
Old 04-09-2017, 11:42 AM
garry0427 garry0427 is offline
Moderator
 
Join Date: Apr 2008
Posts: 157
Default

Doesn't seem to indicate the count, or and end of the array.
Consider:
char * HttpGetHeader(struct http_client * pClient, char *pHeader);
Example:
contentType = HttpGetHeader(httpClient, "Content-Type");
Reply With Quote
  #3  
Old 04-11-2017, 06:11 PM
nbrownett nbrownett is offline
Member
 
Join Date: Mar 2017
Posts: 10
Default

Yes HttpGetHeader works great if I know the specific header(s) I'm looking for.

In the current case we need to store all the headers received, so that we can return those same headers in the send, hence we don't know the header names.
Reply With Quote
Reply

Tags
httpgetheaders, sdk, xport-pro

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:58 AM.


Copyright Lantronix, Inc. 2013. All rights reserved.
Powered by vBulletin® Copyright ©2000 - 2017, vBulletin Solutions, Inc.