Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username = $_GET['user'];
- $password = $_GET['pass'];
- $loginUrl = 'https://onenetsamoobsluha.vodafone.cz/onsc/login/wicket:interface/:0:form::IFormSubmitListener::';
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $loginUrl);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, 'login='.$username.'&password='.$password.'');
- curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $output = curl_exec($ch);
- curl_setopt($ch, CURLOPT_URL, 'https://onenetsamoobsluha.vodafone.cz/onsc/services/data/data-tariffs');
- $content = curl_exec($ch);
- $content = str_replace("../../", "https://onenetsamoobsluha.vodafone.cz/onsc/", $content);
- echo $content;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement