* Nis Jorgensen <[EMAIL PROTECTED]> [20040527 22:08]: > >> He's using the http protocol for that, I assume, not just plain > >> socket connection. > > > >Tilmann's email only mentions ns_sockopen. If the fconfigure trick > >works, then extending ns_httpopen to take an -encoding parameter > >that it uses to fconfigure the channels returned to it from > >ns_sockopen is a simple fix.
Yes that trick worked, thanks. > He probably will want the default to be set from the config file - > probably through a new parameter called something like HttpOpenWriteCharset? An additional -encoding parameter for ns_httpopen would be the most flexible way. Then an aolserver instance could in theory communicate as client with different servers that for whatever reasons need different encodings. For xmlrpc however it will be utf-8 most of the time anyway, so the ability to set it to utf-8 is most important for that usecase. I had a look at the tcl http client package seeing if the ns_httpopen calls could be replaced with that, but apparently there the only way to manipulate the encoding of POSTed data is by setting the system encoding. I don't know if that is a good idea to do within an aolserver tcl script. (Someone asked - yes I would like to use the fancy http stuff for xmlrpc and not re-implement it using only sockets). til -- 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.
