HTTPGetArg Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
HTTPGetArg Function
C
BYTE* HTTPGetArg(
    BYTE* cData, 
    BYTE* cArg
);
Description

Searches through a data array to find the value associated with a given argument. It can be used to find form field values in data received over GET or POST. 

The end of data is assumed to be reached when a null name parameter is encountered. This requires the string to have an even number of null-terminated strings, followed by an additional null terminator.

Preconditions

The data array has a valid series of null terminated name/value pairs.

Parameters
Parameters 
Description 
data 
the buffer to search 
arg 
the name of the argument to find 
Returns

A pointer to the argument value, or NULL if not found.

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.