HTTPHeaderParseAuthorization Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
HTTPHeaderParseAuthorization Function
C
static void HTTPHeaderParseAuthorization();
Description

Parses the "Authorization:" header for a request. For example, "BASIC YWRtaW46cGFzc3dvcmQ=" is decoded to a user name of "admin" and a password of "password". Once read, HTTPCheckAuth is called from CustomHTTPApp.c to determine if the credentials are acceptable. 

The return value of HTTPCheckAuth is saved in curHTTP.isAuthorized for later use by the application.

Preconditions

None

Returns

None

Remarks

This function is ony available when HTTP_USE_AUTHENTICATION is defined.

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