Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url="http://smslane.com/vendorsms/pushsms.aspx?user=abc&password=xyz&msisdn=919898123456&sid=WebSMS&msg=Test message from SMSLane&fl=0";
- $ch = curl_init();
- curl_setopt( $ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1" );
- curl_setopt( $ch, CURLOPT_URL, $url );
- $content = curl_exec( $ch );
- $response = curl_getinfo( $ch );
- curl_close ( $ch );
- echo $content;
- ?>
- <?php
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_URL,
- 'http://your_server/response.php?foo=yes we can&baz=foo bar'
- );
- $content = curl_exec($ch);
- echo $content;
- <?php
- print_r($_GET);
- Array
- (
- [foo] => yes
- )
- echo http_build_query(array(
- 'user'=>'abc',
- 'password'=>'xyz',
- 'msisdn'=>'1234',
- 'sid'=>'WebSMS',
- 'msg'=>'Test message from SMSLane',
- 'fl'=>0
- ));
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- <?php
- print file_get_contents("http://some_server/some_file.php?some_args=true");
- ?>
- <?php
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_URL,'http://www.anydomain.com/anyapi.php?a=parameters');
- $content = curl_exec($ch);
- echo $content;
- ?>
- $r = new HttpRequest('http://www.xencomsoftware.net/configurator/tracker/ip.php', HttpRequest::METH_GET);
- try {
- $r->send();
- echo $r->getResponseCode();
- if ($r->getResponseCode() == 200)
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement