HTTP Content-length...

From: Date: Tue, 20 Feb 2001 12:11:32 +0000
Subject: HTTP Content-length...
Groups: php.general 
Request: Send a blank email to php-general+get-40731@lists.php.net to get a copy of this message
I'm working through geting the raw sockets implementation to send a http post command to a cgi-script. But there's one thing I'm trying to figure out. How do I create the content-length? I don't see a obvious way but my expection would be the following code. $string ="foo=bar&food=apple"; $contentlength=$string.size; $uuencodestring=uuencode($string); but I don't seem to see the easy $string.size ? any ideas on a good way to do this? thanks, evan

« previous php.general (#40731) next »