Posted By

Angelboy on 06/21/10


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Orlandoo


HTTP POST


 / Published in: PHP
 

  1. <?php
  2. //Copyright Angelboy y todos lo que ayudarón xD Asner, Bienvenue, hellsing y rafi xD.
  3. //Y por supuesto por delante de todo Dios
  4. $data="ownerAccountId=5195086&anAccountId=7644523";
  5.  
  6.  
  7. $fp = fsockopen("www.habbo.es", 80, $errno, $errstr, 30);
  8. if (!$fp) {
  9. echo "$errstr ($errno)<br />\n";
  10. } else {
  11. $out = "POST /myhabbo/avatarlist/avatarinfo HTTP/1.1
  12. ";
  13. $out.= "Host: www.habbo.es
  14. ";
  15. $out.= "Keep-Alive: 300
  16. ";
  17. $out.= "X-Requested-With: XMLHttpRequest
  18. ";
  19. $out.= "X-Prototype-Version: 1.6.0.2
  20. ";
  21. $out.= "Content-Type: application/x-www-form-urlencoded; charset=UTF-8
  22. ";
  23. $out.= "Referer: http://www.habbo.es/home/chuchenco
  24. ";
  25. $out.= "Connection: keep-alive
  26. ";
  27. $out.= "Content-Length: ".strlen($data)."
  28. "."
  29. ".$data;
  30. echo $out;
  31. fwrite($fp, $out);
  32. while (!feof($fp)) {
  33. $datos = (fgets($fp, 128));
  34. $datos = str_replace("/habbo-imaging/","http://www.habbo.es/habbo-imaging/", $datos);
  35. echo utf8_decode($datos);
  36. }
  37. fclose($fp);
  38. }
  39. ?>

Report this snippet  

You need to login to post a comment.