http - How to make CONNECT call in iOS? -


nsurlsession supports post , get; support connect?

if so, exact syntax?

thanks!

use nsmutableurlrequest set whatever http method want

let session = nsurlsession()  guard let url = nsurl(string: "http://www.google.com") else {     fatalerror("error creating nsurl http://www.google.com") }  let request = nsmutableurlrequest(url: url) request.httpmethod = "connect"  let task = session.datataskwithrequest(request)  task.resume() 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -