Version: 3.1.5
wxWebAuthChallenge Class Reference

#include <wx/webrequest.h>

Detailed Description

Authentication challenge information available via wxWebRequest::GetAuthChallenge().

Use SetCredentials() to provide user credentials, e.g.

if ( request.GetState() == wxWebRequest::State_Unauthorized )
{
wxWebCredentials cred("me", wxSecretValue("s3krit"));
request.GetAuthChallenge().SetCredentials(cred);
}

Public Types

enum  Source {
  Source_Server,
  Source_Proxy
}
 

Public Member Functions

Source GetSource () const
 Returns which source requested credentials with this challenge. More...
 
void SetCredentials (const wxWebCredentials &cred)
 Used to provide user credentials to the authentication challenge. More...
 

Member Enumeration Documentation

Enumerator
Source_Server 

The server requested authentication.

Source_Proxy 

A proxy requested authentication.

Member Function Documentation

Source wxWebAuthChallenge::GetSource ( ) const

Returns which source requested credentials with this challenge.

void wxWebAuthChallenge::SetCredentials ( const wxWebCredentials cred)

Used to provide user credentials to the authentication challenge.

See also
wxWebCredentials