BasicAuthHeader
Associates a Basic Authentication HTTP Request Header with an HTTP Session
- Stored Procedure
- SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017
EXEC SQLHTTP.net.BasicAuthHeader @HttpSessionID, @UserName, @Password
Name | Type | Description |
---|---|---|
@HttpSessionID | uniqueidentifier | This value is obtained via the HttpSession stored procedure |
@UserName | nvarchar(4000) | User Name |
@Password | nvarchar(4000) | Password |
1 2 3 4 5 6 7 8 9 10 11 12 |
DECLARE @HttpSessionID uniqueidentifier DECLARE @UserName nvarchar(4000) DECLARE @Password nvarchar(4000) SET @UserName = 'enter your UserName here' SET @Password = 'enter your Password here' EXEC SQLHTTP.net.HttpSession @HttpSessionID OUTPUT EXEC SQLHTTP.net.BasicAuthHeader @HttpSessionID, @UserName, @Password |
- AuthListener
- AuthParam
- AuthParamRemove
- AuthParamsClear
- AuthParamSet
- BasicAuthHeader
- FormDataBuilder
- HttpQueueActivity
- HttpRequest
- HttpSession
- IsUrlValid
- OAuthHeader
- QueryStringBuilder
- RaiseHttpError
- RequestHeaderRemove
- RequestHeaders
- RequestHeaderSet
- RequestPartAdd
- ResponseHeaders
- UrlBuilder
- UrlProperty