>
> set content_length [string length [encoding convertto utf-8 $value]]
>

Your code seems fine (from what I can tell), but the implementation of 
ns_httpsopen overwrites your entry in the rqset, using a faulty length 
value:

see line 304 in
http://aolserver.cvs.sourceforge.net/viewvc/aolserver/nsopenssl/https.tcl?view=markup

without the convertto bit, the reported length will be the length in 
terms of Tcl chars, not raw bytes.

For some reason, Scott decided that it is a bad idea to have 
content-length to be provided by the client of ns_httpsopen. Can't tell 
why (apart from the multi-part case or so).

//stefan

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
aolserver-talk mailing list
aolserver-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aolserver-talk

Reply via email to