Objective-C Asynchronous Web Request with Cookies

前端 未结 3 1933
半阙折子戏
半阙折子戏 2020-11-28 21:44

I am writing a program in Objective-C and I need to make web requests to web server, but asynchronously and I am fairly new on mac, I am very good at windows technologies, b

3条回答
  •  忘掉有多难
    2020-11-28 22:07

    I am able to fetch cookie in such way:

    NSArray* arr = [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookiesForURL:[NSURL URLWithString: @"http://google.com" ]];
    

    This one works fine for asynchronous request as well.

提交回复
热议问题