in reply to Re^7: Determining content-length for an HTTP Post
in thread Determining content-length for an HTTP Post

#34772: HTTP::Request::Common::PUT should set content length
  • Comment on Re^8: Determining content-length for an HTTP Post

Replies are listed 'Best First'.
Re^9: Determining content-length for an HTTP Post
by WizardOfUz (Friar) on Nov 26, 2009 at 11:43 UTC

    Of course, the use bytes / length() solution is not perfect (just see my examples [5] and [6] above). But it is a reasonable approach considering that we do not know what the OP's $xmldata is and that "normal" users are usually not fiddling with the UTF-8 flag.