Re: post file from one server to other

From: Date: Tue, 24 Aug 2004 16:54:30 +0000
Subject: Re: post file from one server to other
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-194600@lists.php.net to get a copy of this message
> I have a database with binary file. I want to post that file from my > server to another one with posting method. I have no problem to post any > text data but I can not post binary data such as picture.jpe. The HTTP_Client class in Pear will handle post requests: http://pear.php.net/package/HTTP_Client http://pear.php.net/manual/en/package.http.http-client.php I believe it has pretty good support for sending binary data in that request. Your other option is to build your post requests manually, using sockets. I've done this, but it does require a lot of background knowledge of HTTP. Luckily there's someone on this list who knows a great deal about that. :) --------------------------------------------------------------------- michal migurski- contact info and pgp key: sf/ca http://mike.teczno.com/contact.html

« previous php.general (#194600) next »