skip to Main Content

Prevent ClosableHttpClient from sending cookies – Shopify

I am attempting to write a private app for the Shopify API in Java. I'm using the org.apache.http library to write my requests. Below is my current request: CloseableHttpClient httpClient = HttpClientBuilder.create().setDefaultRequestConfig(RequestConfig.custom().setCookieSpec(CookieSpecs.STANDARD).build()).build(); HttpPut putRequest = new HttpPut(request); StringEntity params; try…

VIEW QUESTION

Cookie not set in spring boot mvc – Shopify

@RequestMapping(value = "/login", method = RequestMethod.POST) public String login(HttpServletResponse response, Model modelAndView, @RequestParam String email, @RequestParam String password, @RequestParam(required = false) String redirect) { LoginDTO loginDTO = account.doLogin(email, password); if (loginDTO.getLoginMGS() == LoginStatus.LOGGED_IN) { Cookie cookie = new Cookie("token", loginDTO.getToken());…

VIEW QUESTION
Back To Top
Search