News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Chris Hartjes' Blog:
How To HTTP-PUT A File Somewhere Using PHP
January 14, 2008 @ 09:39:00

Chris Hartjes has a quick post (but complete with code) about moving files around a bit differently than the norm - it's his method for using a HTTP-PUT to push a file out.

A work project is getting close to 0.1 status. Pretty underwhelming, I know. One of the last 'milestones' for 0.1 is taking these wonderful XML documents that my web app creates and sends them to an internal web service. This web service will accept documents via an HTTP PUT [...] so I dug around a bit on the web and put together some code.

The code is a generic "publish" method that opens a stream to the remote server and, in a binary format, pushes the contents of a local file and parses out the response.

0 comments voice your opinion now!
http put remote location file push http put remote location file push


blog comments powered by Disqus

Similar Posts

PHP Security Blog: phpBB exploit in the wild

PHPRiot.com: Monitoring File Uploads using Ajax and PHP

Matthew Weier O'Phinney's Blog: Proper Layer files when using Dojo with Zend Framework

Felix Geisendorfer's Blog: How to organize your CakePHP App's Javascript?

DeveloperTutorials.com: Scraping Links With PHP


Community Events

Don't see your event here?
Let us know!


podcast series language interview api version community release threedevsandamaybe opinion voicesoftheelephpant extension security laravel5 laravel introduction symfony library unittest framework

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework