RequestHeaderRemove
Removes a previously associated HTTP Request Header from an HTTP Session
- Stored Procedure
- SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017
EXEC SQLHTTP.net.RequestHeaderRemove @HttpSessionID, @Key
Name | Type | Description |
---|---|---|
@HttpSessionID | uniqueidentifier | This value is obtained via the HttpSession stored procedure |
@Key | nvarchar(400) | Request Header Key Name previously set |
The following example adds a Request Header and then removes it, resulting in an empty RequestHeaders for the given HttpSessionID:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
DECLARE @HTTPSessionID uniqueidentifier EXEC SQLHTTP.net.HTTPSession @HTTPSessionID OUTPUT --Appends a Request Header EXEC SQLHTTP.net.RequestHeaderSet @HTTPSessionID, 'Authorization', 'Bearer AxpYmrpYpwchn9UH95I8Zf4F99BMg3Crxewf' --Removes the same Request Header EXEC SQLHTTP.net.RequestHeaderRemove @HTTPSessionID, 'Authorization' SELECT * FROM SQLHTTP.net.RequestHeaders(@HTTPSessionID) |
1 2 3 4 |
Key Value ------------------- ------------------- |
- AuthListener
- AuthParam
- AuthParamRemove
- AuthParamsClear
- AuthParamSet
- BasicAuthHeader
- FormDataBuilder
- HttpQueueActivity
- HttpRequest
- HttpSession
- IsUrlValid
- OAuthHeader
- QueryStringBuilder
- RaiseHttpError
- RequestHeaderRemove
- RequestHeaders
- RequestHeaderSet
- RequestPartAdd
- ResponseHeaders
- UrlBuilder
- UrlProperty