BLOG | DOCUMENTATION | TRAC

Home --> Documentations --> PJLIB-UTIL Reference

pj_http_auth_cred Struct Reference
[Simple HTTP Client]

Data Fields

pj_str_t scheme
pj_str_t realm
pj_str_t username
unsigned data_type
pj_str_t data

Detailed Description

Structure to save HTTP authentication credential.


Field Documentation

Specify authentication password. The encoding of the password depends on the value of data_type field above.

Default is empty.

The type of password in data field. Currently only 0 is supported, meaning the data contains plain-text password.

Default is 0.

Specify specific authentication realm to be responded. If this field is set, only 401/407 response with matching realm will be responded. If this field is not set, any realms will be responded.

Default is empty.

Specify specific authentication schemes to be responded. Valid values are "basic" and "digest". If this field is not set, any authentication schemes will be responded.

Default is empty.

Specify authentication username.

Default is empty.


The documentation for this struct was generated from the following file:

 


PJLIB-UTIL Open Source, small footprint, and portable asynchronous/caching DNS resolver, text scanner, STUN client, and XML library
Copyright (C) 2006-2009 Teluu Inc.