Tizen Native API
5.5
|
It manages HTTP Authentication and credential.
#include <http.h>
It manages HTTP Authentication and credential.
Functions | |
int | http_transaction_open_authentication (http_transaction_h http_transaction, http_transaction_h *http_auth_transaction) |
Opens HTTP transaction with authentication information. | |
int | http_transaction_set_credentials (http_transaction_h http_transaction, const char *user_name, const char *password) |
Sets an HTTP credentials. | |
int | http_transaction_get_credentials (http_transaction_h http_transaction, char **user_name, char **password) |
Gets the username & password for the HTTP credential. | |
int | http_transaction_set_http_auth_scheme (http_transaction_h http_transaction, http_auth_scheme_e auth_scheme) |
Sets an HTTP authentication scheme. | |
int | http_transaction_get_http_auth_scheme (http_transaction_h http_transaction, http_auth_scheme_e *auth_scheme) |
Gets the HTTP authentication scheme. | |
int | http_transaction_get_realm (http_transaction_h http_transaction, char **realm) |
Gets the HTTP authentication realm. |
int http_transaction_get_credentials | ( | http_transaction_h | http_transaction, |
char ** | user_name, | ||
char ** | password | ||
) |
Gets the username & password for the HTTP credential.
[in] | http_transaction | The HTTP transaction handle |
[out] | user_name | The HTTP credential user name |
[out] | password | The HTTP credential password |
0
on success, otherwise negative error value HTTP_ERROR_NONE | Successful |
HTTP_ERROR_INVALID_PARAMETER | Invalid parameter |
HTTP_ERROR_INVALID_OPERATION | Invalid operation |
HTTP_ERROR_OUT_OF_MEMORY | Out of memory |
HTTP_ERROR_NOT_SUPPORTED | Not Supported |
int http_transaction_get_http_auth_scheme | ( | http_transaction_h | http_transaction, |
http_auth_scheme_e * | auth_scheme | ||
) |
Gets the HTTP authentication scheme.
[in] | http_transaction | The HTTP transaction handle |
[out] | auth_scheme | The HTTP auth scheme value |
0
on success, otherwise negative error value HTTP_ERROR_NONE | Successful |
HTTP_ERROR_INVALID_PARAMETER | Invalid parameter |
HTTP_ERROR_INVALID_OPERATION | Invalid operation |
HTTP_ERROR_NOT_SUPPORTED | Not Supported |
int http_transaction_get_realm | ( | http_transaction_h | http_transaction, |
char ** | realm | ||
) |
Gets the HTTP authentication realm.
[in] | http_transaction | The HTTP transaction handle |
[out] | realm | The HTTP authentication realm value |
0
on success, otherwise negative error value HTTP_ERROR_NONE | Successful |
HTTP_ERROR_INVALID_PARAMETER | Invalid parameter |
HTTP_ERROR_INVALID_OPERATION | Invalid operation |
HTTP_ERROR_OUT_OF_MEMORY | Out of memory |
HTTP_ERROR_NOT_SUPPORTED | Not Supported |
int http_transaction_open_authentication | ( | http_transaction_h | http_transaction, |
http_transaction_h * | http_auth_transaction | ||
) |
Opens HTTP transaction with authentication information.
[in] | http_transaction | The HTTP transaction handle |
[out] | http_auth_transaction | The HTTP transaction handle |
0
on success, otherwise negative error value HTTP_ERROR_NONE | Successful |
HTTP_ERROR_INVALID_PARAMETER | Invalid parameter |
HTTP_ERROR_INVALID_OPERATION | Invalid operation |
HTTP_ERROR_OUT_OF_MEMORY | Out of memory |
HTTP_ERROR_NOT_SUPPORTED | Not Supported |
int http_transaction_set_credentials | ( | http_transaction_h | http_transaction, |
const char * | user_name, | ||
const char * | password | ||
) |
Sets an HTTP credentials.
Sets an HTTP authentication scheme such as username and password.
[in] | http_transaction | The HTTP transaction handle |
[in] | user_name | The HTTP user name |
[in] | password | The HTTP password |
0
on success, otherwise negative error value HTTP_ERROR_NONE | Successful |
HTTP_ERROR_INVALID_PARAMETER | Invalid parameter |
HTTP_ERROR_NOT_SUPPORTED | Not Supported |
int http_transaction_set_http_auth_scheme | ( | http_transaction_h | http_transaction, |
http_auth_scheme_e | auth_scheme | ||
) |
Sets an HTTP authentication scheme.
Set an HTTP authentication scheme such as BASIC, MD5, NTLM and etc.
[in] | http_transaction | The HTTP transaction handle |
[in] | auth_scheme | The HTTP authentication scheme |
0
on success, otherwise negative error value HTTP_ERROR_NONE | Successful |
HTTP_ERROR_INVALID_PARAMETER | Invalid parameter |
HTTP_ERROR_NOT_SUPPORTED | Not Supported |