> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XNetworkingQuerySecurityInformationForUrlAsync

> XNetworkingQuerySecurityInformationForUrlAsync

# XNetworkingQuerySecurityInformationForUrlAsync

Retrieves additional security information associated with a URL configured in the Universal Developer Portal for XBOX Live-enabled titles.

## Syntax

```cpp theme={null}
HRESULT XNetworkingQuerySecurityInformationForUrlAsync(
         const char* url,
         XAsyncBlock* asyncBlock
)
```

### Parameters

*url*   \_In\_z\_\
Type: char\*

URL of the security information and list of certificate thumbprints.

*asyncBlock*   \_Inout\_\
Type: [XAsyncBlock](/reference/system/xasync/structs/xasyncblock)\*

Pointer to the [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) structure that gets passed to [XAsyncRun](/reference/system/xasync/functions/xasyncrun) function.

### Return value

Type: HRESULT

HRESULT success or error code of the async call.

## Remarks

This function starts an async request for the security information associated with a URL that was configured for a title through the Universal Developer Portal. This allows XBOX Live-enabled Microsoft Game Development Kit (GDK) titles to perform certificate pinning for custom title-specific service endpoints when paired with the [Windows HTTP Services (WinHTTP)](https://learn.microsoft.com/windows/desktop/winhttp/winhttp-start-page) API. It is also required when making any custom web requests to the XBOX Live service endpoints. The XBOX Services API (XSAPI) library handles this requirement automatically.

This method interrogates the local state within the calling process and returns quickly, so it is safe to call from time-sensitive contexts.

## Requirements

**Header:** XNetworking.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[Retrieving Network Information](/build/console-features/networking/initialization-connectivity-networking)\
[HTTP and WebSockets](/build/console-features/networking/web-requests/http-networking)\
[XNetworking](/reference/networking/xnetworking/xnetworking_members)


## Related topics

- [XNetworkingQuerySecurityInformationForUrlAsyncResult](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresult.md)
- [XNetworkingQuerySecurityInformationForUrlAsyncResultSize](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresultsize.md)
- [XNetworkingSecurityInformation](/reference/networking/xnetworking/structs/xnetworkingsecurityinformation.md)
- [XNetworking](/reference/networking/xnetworking/xnetworking_members.md)
- [XNetworkingThumbprint](/reference/networking/xnetworking/structs/xnetworkingthumbprint.md)
