title: pass data to request method of HttpSocket in CakePHP
body: <p>I'm using the <a href="http://book.cakephp.org/1.3/en/view/1520/request" rel="nofollow">HttpSocket request</a> method of CakePHP to perform some requests to some api. I want to send some parameters with my request. Does anybody know how I can send some parameters using that method? For example, let's say I'm sending a request to this url:</p>
  
  <pre><code>http://www.mydomain.com
  </code></pre>
  
  <p>but I wanna send parameter to this request for example:</p>
  
  <pre><code>username: smith123
  password: qwerty
  </code></pre>
  
  <p>If I were to do this with Ajax, I would do something like:</p>
  
  <pre><code>$.post('http://www.mydomain.com', {username: "smith123", password: "qwerty"}, 'json');
  </code></pre>
  
  <p>How do I send those parameters (also the type of data expected as specified in the ajax example above) to <code>http://www.mydomain.com</code> using the request method of the HttpSocket class of CakePHP</p>
  
  <p>Please help</p>
  
  <p>Thank you</p>