News Feed
Jobs Feed
Sections




Recent Jobs

News Archive
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



Similar Posts

Joshua Eichorn\'s Blog: PHP AJAX File Upload Progress Meter Updates

Wez Furlong\'s Blog: Don\'t blog bugs, file bug reports

Sebastian Bergmann's Blog: Test Runner Improvement in PHPUnit 3.3

Martynas Jusevicius' Blog: Reading Excel files with PHP

Brian Moon's Blog: Putting files into a database


Community Events









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


sqlserver version apache drupal podcast extension microsoft conference facebook windows codeigniter feature framework symfony opinion wordpress job zendframework release developer

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