netstatus_get_proxy_details_for_url()

Get the proxy details for a given URL and (optional) interface.

Synopsis:

#include <bps/netstatus.h>
 
BPS_API int netstatus_get_proxy_details_for_url(const char *url,
                                                const char *interface,
                                                netstatus_proxy_details_t *details)

Since:

BlackBerry 10.0.0

Arguments:

url

The URL to check proxy settings against.

interface

The name of the interface whose proxy is being checked. This may be NULL, in which case the default interface will be checked.

details

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)

Description:

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.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus