RequestHeaders
Returns a table of HTTP Request Headers associated with an HTTP Session
- Function
- SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017
SELECT *
FROM SQLHTTP.net.RequestHeaders ( @HttpSessionID )
Name | Type | Description |
---|---|---|
@HttpSessionID | uniqueidentifier | This value is obtained via the HttpSession stored procedure |
Column name | Data type | Description |
---|---|---|
Key | nvarchar(400) | HTTP Request Header Name |
Value | nvarchar(MAX) | HTTP Request Header Value |
1 2 3 4 5 6 7 8 9 10 11 12 |
DECLARE @HTTPSessionID uniqueidentifier EXEC SQLHTTP.net.HTTPSession @HTTPSessionID OUTPUT EXEC SQLHTTP.net.RequestHeaderSet @HTTPSessionID, 'Authorization', 'Bearer AxpYmrpYpwchn9UH95I8Zf4F99BMg3Crxewf' SELECT * FROM SQLHTTP.net.RequestHeaders(@HTTPSessionID) |
1 2 3 4 5 |
Key Value ------------------- ------------------- Authorization Bearer AxpYmrpYpwchn9UH95I8Zf4F99BMg3Crxewf |
- AuthListener
- AuthParam
- AuthParamRemove
- AuthParamsClear
- AuthParamSet
- BasicAuthHeader
- FormDataBuilder
- HttpQueueActivity
- HttpRequest
- HttpSession
- IsUrlValid
- OAuthHeader
- QueryStringBuilder
- RaiseHttpError
- RequestHeaderRemove
- RequestHeaders
- RequestHeaderSet
- RequestPartAdd
- ResponseHeaders
- UrlBuilder
- UrlProperty