title: PHP cURL to grab Walmart Gift Cards Balance?
body: <p>I am trying to use the following the code to grab the balance in a gift card without using the walmart for enduser.</p>
  
  <pre><code>&lt;?php 
  $url = "https://www.walmart.com/cservice/ProcessShoppingCard.do";
  //
  $h = curl_init();
  
  curl_setopt($h, CURLOPT_URL, $url); 
  curl_setopt($h, CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($h, CURLOPT_POST, true);
  curl_setopt($h, CURLOPT_POSTFIELDS, array(
  'cardNumber' =&gt; '1234567890123456',
  'pin' =&gt; '1234',
  'GetCardBalance' =&gt; 'GetCardBalance'
  ));
  curl_setopt($h, CURLOPT_HEADER, true);
  curl_setopt($h, CURLOPT_RETURNTRANSFER, true);
  
  $result = curl_exec($h);
  echo $result;
  
  
  ?&gt;
  </code></pre>
  
  <p>But it seems to only show the page and not the results. I examined the form used in walmart and it has only 3 fields: cardNumber, pin and GetCardBalance.</p>
  
  <p>Which i have used but still not getting the results.</p>
  
  <p>If i go to this url <a href="https://www.walmart.com/cservice/ProcessShoppingCard.do" rel="nofollow">https://www.walmart.com/cservice/ProcessShoppingCard.do</a>
  And try to check the balance, it does show the response.</p>
  
  <p>Any ideas, what and where i am doing wrong?</p>
  
  <p>Please advice, 
  thanks!</p>