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

php session cookie not stored – Oscommerce

I have this php script in my header.php file, sending HTTP headers to a python script, and setting a GUID as a session cookie: <?php ob_start(); function guid(){ if (function_exists('com_create_guid')){ return com_create_guid(); }else{ mt_srand((double)microtime()*10000);//optional for php 4.2.0 and up. $charid…

VIEW QUESTION
Back To Top
Search