Re: HTTP Content-length...
| From: | Ben Peter | Date: | Tue, 20 Feb 2001 11:15:27 +0000 |
| Subject: | Re: HTTP Content-length... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40733@lists.php.net to get a copy of this message | ||
Evan,
I have no good answer to your problem, but probably you should have a
look at Snoopy (snoopy.sourceforce.net), which implements HTTP posts,
along with some other nifty functions and is very easy to use.
Cheers,
Ben
"Montgomery-Recht, Evan" wrote:
>
> 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net