RequestHeaderSet
Associates an HTTP Request Header with an HTTP Session
- Stored Procedure
- SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017
EXEC SQLHTTP.net.RequestHeaderSet @HttpSessionID, @Key, @Value
Name | Type | Description |
---|---|---|
@HttpSessionID | uniqueidentifier | This value is obtained via the HttpSession stored procedure |
@Key | nvarchar(400) | Request Header Key Name |
@Value | nvarchar(4000) | 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