mIRC Homepage
Posted By: coder weird sockopen problem - 23/06/06 07:08 AM
(HTML) HTTP/1.1 302 Moved Temporarily
(HTML) Content-Length: 0
(HTML) Location: /auth.php?d68ade00


(HTML) HTTP/1.1 408 Request Timeout
(HTML) Connection: Close
(HTML) Pragma: no-cache
(HTML) cache-control: no-cache
(HTML) Content-Type: text/html; charset=iso-8859-1

im making socket website reading , both problem always happen sometimes , that weird thing is , when i browsing the web by web browser , everything goes fine and the socket suddently can reading smoothly without any html error...

anyone can help me ?
Posted By: truguce Re: weird sockopen problem - 23/06/06 08:57 AM
Can you post your code so we can see what it is you are doing. Along with the web site you are trying.
Posted By: coder Re: weird sockopen problem - 23/06/06 11:42 AM
ON *:SOCKOPEN:web.auth: {
  if ($sockerr > 0) { return  }
  sockwrite -n $sockname POST /auth.php HTTP/1.1
  sockwrite -n $sockname Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
  sockwrite -n $sockname Accept-Language: en-us
  sockwrite -n $sockname Content-Type: application/x-www-form-urlencoded
  sockwrite -n $sockname Accept-Encoding: gzip, deflate
  sockwrite -n $sockname Host: $ip
  sockwrite -n $sockname Cache-Control: no-store, no-cache
  sockwrite -n $sockname Pragma: no-cache
  sockwrite -n $sockname Content-Type: text/html
  sockwrite -n $sockname Cache-Control: no-cache
  sockwrite -n $sockname $crlf
Posted By: genius_at_work Re: weird sockopen problem - 23/06/06 02:09 PM
Try using HTTP/1.0 instead.

Posted By: SCNDRL Re: weird sockopen problem - 23/06/06 02:27 PM
write host after POST and write Server's host to There
© mIRC Discussion Forums