HTTPGetROMArg Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
HTTPGetROMArg Function
C
BYTE* HTTPGetROMArg(
    BYTE* cData, 
    ROM 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.

Remarks

This function is aliased to HTTPGetArg on non-PIC18 platforms.

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