12 lines
335 B
Plaintext
12 lines
335 B
Plaintext
// HTTPS/Authenticated task
|
|
// https://rosettacode.org/wiki/HTTPS/Authenticated#
|
|
|
|
CFStringRef response
|
|
CFDataRef dta
|
|
response = unix @"curl -u admin:admin https://httpbin.org/basic-auth/admin/admin"
|
|
dta = fn StringData( response, NSUTF8StringEncoding )
|
|
|
|
print fn StringWithData( dta, NSUTF8StringEncoding )
|
|
|
|
handleevents
|