Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1.      $fp = fsockopen("localhost", 14204, $errno, $errdesc) or
  2.             die("Connection failed [$errno]: $errdesc\n");
  3.        
  4.    
  5.         $resp = fwrite($fp,"GET /carts/new/ HTTP/1.1\r\nHost: localhost\r\nOther-header: here\r\n\r\n");
  6.        
  7.         //$status = trim(fgets($fp));
  8.        
  9.         print_r($resp);
  10.    
  11.         fclose($fp);
  12.  
  13.  
  14.  
  15.  
  16. respose == 65
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement