Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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' => '1234567890123456',
- 'pin' => '1234',
- 'GetCardBalance' => 'GetCardBalance'
- ));
- curl_setopt($h, CURLOPT_HEADER, true);
- curl_setopt($h, CURLOPT_RETURNTRANSFER, true);
- $result = curl_exec($h);
- echo $result;
- ?>
- <form name="CheckCardBalance" action="/cservice/ProcessShoppingCard.do" method="POST" class="CheckCardBalance">
- ...
- <input type="text" size="18" maxlength="16" value="" name="cardNumber">
- ...
- <input type="password" size="4" maxlength="4" value="" name="pin">
- ...
- </form>
- $params = array ('cardNumber' => '1234567890', 'pin' => '1234');
- $query = http_build_query ($params);
- $contextData = array (
- 'method' => 'POST',
- 'header' => "Connection: closern".
- "Content-Length: ".strlen($query)."rn",
- 'content'=> $query
- );
- $context = stream_context_create (array('http' => $contextData));
- $result = file_get_contents(
- 'https://www.walmart.com/cservice/ProcessShoppingCard.do',
- false,
- $context
- );
- $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, "cardNumber=1234567890123456&pin=1234&GetCardBalance.x=90&GetCardBalance.y=8");
- curl_setopt($h, CURLOPT_HEADER, true);
- curl_setopt($h, CURLOPT_RETURNTRANSFER, true);
- //
- $result = curl_exec($h);
- echo $result;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement