Get the proxy details for a given URL and (optional) interface.
BPS_API int netstatus_get_proxy_details_for_url(const char *url, const char *interface, netstatus_proxy_details_t *details)
The URL to check proxy settings against.
The name of the interface whose proxy is being checked. This may be NULL, in which case the default interface will be checked.
A pointer to a location where the function can store the proxy details. The caller must call netstatus_free_proxy_details() when done with this structure.
Library:libbps (For the qcc command, use the -l bps option to link against this library)
The netstatus_get_proxy_details_for_url() function gets the proxy details of the network connection for a given URL. System proxy credentials are retrieved only for the default interface.
Note that the API caller is responsible for validating the UTF-8 encoding and the format of the proxy host returned in details.
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.
Last modified: 2014-09-30