Krenair

Check HTTP requests in production

Jul 18th, 2013
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1. $req = MWHttpRequest::factory( 'http://de.wikipedia.org/w/api.php?format=json&action=query&meta=siteinfo&siprop=usergroups' );
  2. var_dump( $req->execute()->isOK() );
  3. var_dump( json_decode( $req->getContent() ) );
Advertisement
Add Comment
Please, Sign In to add comment