Sending Cookie info in HttpRequest

前端 未结 5 1503
抹茶落季
抹茶落季 2020-12-10 20:11

I want to call a web service that requires an authentication cookie.

I have the cookie name and value. but I don\'t know how to inject the cookie in the request.

5条回答
  •  庸人自扰
    2020-12-10 20:34

    If you are using (Http)UrlConnection for the request, then you can use CookieManager to handle cookies. Here is an article on how to use it.

提交回复
热议问题