In Xcode 6 this was working:
let url = NSURL(string: "https://api.datamarket.azure.com/Bing/Search/Image?$format=json&Query='\(keywords2)'")
let request = NSMutableURLRequest(URL: url!)
request.HTTPMethod = "POST"
request.setValue("Basic \(base64LoginString)", forHTTPHeaderField: "Authorization")
Client received real data with image information. But in Xcode 7 I receive from Bing an error:
The authorization type you provided is not supported. Only Basic and OAuth are supported
Any idea what is going on? As you see I use Basic authentication. With external HTTP client it works, get back real data.
Tried to set up NSAppTransportSecurity
like here, but did not help
-
Tried to set Info.plist
, but did not help.