mIRC Home    About    Download    Register    News    Help

Print Thread
#258200 17/06/16 05:22 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
I seem to be having an issue with connecting to certain websites with /sockopen. (Either via port 80 or 443 with -e flag.)

E.g. /sockopen web.1 undernet.org 80

Code:
on *:sockopen:web.*:{
  if (!$sockerr) {
    ; HTTP/socket code here
  }
}


It just completely skips this, and I don't know why.

$sockerr returns 4, .wserr returns 0, and .wsmsg returns [0] Unknown Error

I can connect to the site fine via my web browser, though...

Any help would be appreciated.


What do you do at the end of the world? Are you busy? Will you save us?
Jigsy #258202 17/06/16 05:57 PM
Joined: Apr 2004
Posts: 871
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
If the error list I made a decade ago is still accurate, that would indicate that the hostname in the /sockopen call couldn't be resolved.


Saturn, QuakeNet staff
Sat #258203 17/06/16 06:05 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Ah. Thanks for that.

Interestingly, undernet.org doesn't work, yet www.undernet.org does.

Problem solved I guess?


What do you do at the end of the world? Are you busy? Will you save us?

Link Copied to Clipboard