1. //WRONG
  2. $header = "Host: www.hackthissite.org\r
  3. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13\r
  4. Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r
  5. Accept-Language: en-gb,en;q=0.5\r
  6. Accept-Encoding: gzip,deflate\r
  7. Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r
  8. Keep-Alive: 115\r
  9. Connection: keep-alive\r
  10. Referer: http://www.hackthissite.org/missions/programming/\r\n" . $cookie . "Connection: Close\r\n\r\n";
  11.  
  12. //RIGHT
  13. $header = "Host: www.hackthissite.org\r
  14. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13\r
  15. Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r
  16. Accept-Language: en-gb,en;q=0.5\r
  17. Accept-Encoding: gzip,deflate\r
  18. Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r
  19. Keep-Alive: 115\r
  20. Connection: keep-alive\r
  21. Referer: http://www.hackthissite.org/missions/programming/\r\n" . $cookie . "Connection: Close\r\n\r\n";
  22.