Skip to content

Instantly share code, notes, and snippets.

@jmoz
Created February 3, 2011 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmoz/809645 to your computer and use it in GitHub Desktop.
Save jmoz/809645 to your computer and use it in GitHub Desktop.
<?php
$request = new HttpRequest('http://symfony/foo', HTTP_METH_PUT);
$request->setHeaders(array('Content-Type' => 'application/x-www-form-urlencoded'));
$request->setPutData('content=bar');
$response = $request->send();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment