This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

tls::socket question

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
NewzNZ
Halfop
Posts: 68
Joined: Thu Mar 05, 2009 5:15 am
Contact:

tls::socket question

Post by NewzNZ »

Hi there
I have a bot script running fine on one host provider, but on a second host provider I get an error when using the same script:

script extract:
::http::register https 443 [list ::tls::socket -autoservername true]

error:
wrong # args: should be "tls::socket ?options? host port"

Just wondering if anyone might have any ideas about this error?

Thanks in advance.
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

Try something more like this (replace the.server.name with the server name you are connecting to)

Code: Select all

::http::register https 443 [list ::tls::socket -servername the.server.name]
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
User avatar
NewzNZ
Halfop
Posts: 68
Joined: Thu Mar 05, 2009 5:15 am
Contact:

Post by NewzNZ »

Thanks...will give that a go...

Thanks for the help!
Post Reply