Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
|
|
@ -0,0 +1,7 @@
|
|||
$client = [Net.WebClient]::new()
|
||||
# credentials of current user:
|
||||
$client.Credentials = [Net.CredentialCache]::DefaultCredentials
|
||||
# or specify credentials manually:
|
||||
# $client.Credentials = [System.Net.NetworkCredential]::new("User", "Password")
|
||||
$data = $client.DownloadString("https://example.com")
|
||||
Write-Host $data
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
;; Encode the string "admin:admin" into Base64 format
|
||||
auth: enbase "admin:admin" 64
|
||||
;; Perform an HTTP GET request to a test endpoint requiring Basic Authentication
|
||||
print write https://httpbin.org/basic-auth/admin/admin compose/deep [
|
||||
GET [
|
||||
;; Include HTTP header "Authorization: Basic <base64 credentials>"
|
||||
Authorization: (join "Basic " auth)
|
||||
]
|
||||
]
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
system/options/quiet: on ;; turns off all traces
|
||||
system/options/log/http: 0 ;; turns off just HTTP traces
|
||||
Loading…
Add table
Add a link
Reference in a new issue