mIRC Home    About    Download    Register    News    Help

Print Thread
weird sockopen problem #151910 23/06/06 07:08 AM
Joined: Dec 2002
Posts: 60
C
coder Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2002
Posts: 60
Code:
 
(HTML) HTTP/1.1 302 Moved Temporarily
(HTML) Content-Length: 0
(HTML) Location: /auth.php?d68ade00

or

(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 ?

Re: weird sockopen problem #151911 23/06/06 08:57 AM
Joined: Oct 2005
Posts: 91
T
truguce Offline
Babel fish
Offline
Babel fish
T
Joined: Oct 2005
Posts: 91
Can you post your code so we can see what it is you are doing. Along with the web site you are trying.

Re: weird sockopen problem #151912 23/06/06 11:42 AM
Joined: Dec 2002
Posts: 60
C
coder Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2002
Posts: 60
Code:
  
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
}

Re: weird sockopen problem #151913 23/06/06 02:09 PM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Try using HTTP/1.0 instead.

-genius_at_work

Re: weird sockopen problem #151914 23/06/06 02:27 PM
Joined: Dec 2005
Posts: 58
S
SCNDRL Offline
Babel fish
Offline
Babel fish
S
Joined: Dec 2005
Posts: 58
write host after POST and write Server's host to There


i like that