Dnia 25-10-2005 o 22:23:51 Ron Emerick <[EMAIL PROTECTED]> napisaƂ:
# establish connection
  set fds [ns_openssl_sockopen  $host $port
  set r   [lindex $fds 0]
  set w   [lindex $fds 1]
  # send request
  puts $w "$httprequest\n\n"
  flush $w
 while {[set line [string trim [gets $r]]] != ""} {
    lappend headers $line
  }
  #set content_len from http headers

Just guessing here, but this is probably needed:
fconfigure $r -translation binary

  set out [read $r $content_len]
  close $r
  close $w

--
WK


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to