Possible to determine content-length from output text?
Moderator: General Moderators
Possible to determine content-length from output text?
I have a file that outputs a session value. I need to set the content-length header, but I'm not sure how to determine content-length based solely on the output of that text. Is this possible?
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: Possible to determine content-length from output text?
I tried strlen, and it output something like 50000, but when I save that text to a text file and save it to my desktop it says it's 16kb. Is that correct?
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: Possible to determine content-length from output text?
That doesn't sound right, no. Are you working with multibyte languages?