in reply to Determining content-length for an HTTP Post

I think I just discovered the problem.

I am sending the post as

Content-Type:application/atom+xml; charset=UTF-8
It's possible that the number of bytes once it's been converted to this content-type is different than the ascii value.

How would I go about determining the length/size of my data if the type is "Content-Type:application/atom+xml; charset=UTF-8" ?

Replies are listed 'Best First'.
Re^2: Determining content-length for an HTTP Post
by WizardOfUz (Friar) on Nov 25, 2009 at 17:50 UTC
    See above :-)
      Thank you, I looked it up and tried it, but it's returning the same numerical value as it did before I added 'use bytes;' to my program.
      Where do I go from here?

        I'm afraid we need more information on how you are communicating with the YouTube servers ...