title: How can I set cookies to an HTTP Request?
body: <p>I need to set cookies for an HTTP Request. </p>
  
  <p>Is it possible to do something like this? </p>
  
  <pre><code>$.ajax({
      method: "POST",
      url: "http://example.org/",
      dataType: "html",
      data: {
          game: "soccer",
          value: "2395",
          action: "newGame"
      },
      cookies: {
          "domain": ".example.org",
          "name": "SESSION",
          "path": "/",
          "value": "34645645765756757"
      }
  }).done(function( msg ) {
      console.log(msg);
  });
  </code></pre>