NSURLSession and cookie

NSURLSessionを使用してダウンロードを実装する際に、

cookieをrequestに付与したいのですが、NSURLSessionを用いたCookieの取得方法と

付与方法について教えてください。

cookie取得と付与のサンプルコードを提示していただけると助かります。

Answered by guywithmazda in 122593022

One of these links might help (remove spaces):

http: // stackoverflow.com/questions/23218242/set-cookies-with-nsurlsession

http: // stackoverflow.com/questions/29596206/how-to-get-cookie-from-a-nsurlsession-with-swift

Accepted Answer

One of these links might help (remove spaces):

http: // stackoverflow.com/questions/23218242/set-cookies-with-nsurlsession

http: // stackoverflow.com/questions/29596206/how-to-get-cookie-from-a-nsurlsession-with-swift

NSURLSession and cookie
 
 
Q