Correct. It is the size in bytes not number of characters.
On Jul 3, 2013 12:00 PM, "Nate Good" <notifications@github.com> wrote:

> In src/Httpful/Request.php:
>
> > @@ -784,6 +784,14 @@ public function _curlPrep()
> >          curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, $this->strict_ssl);
> >          curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
> >
> > +        // https://github.com/nategood/httpful/issues/84
> > +        // set Content-Length to the size of the payload if present
> > +        if (isset($this->payload)) {
> > +            $this->serialized_payload = $this->_serializePayload($this->payload);
> > +            curl_setopt($ch, CURLOPT_POSTFIELDS, $this->serialized_payload);
> > +            $this->headers['Content-Length'] = strlen($this->serialized_payload);
>
> Nope, I think you are correct. We want strlen even for multibyte
> characters.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/nategood/httpful/pull/85/files#r5012797>
> .
>