X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Fexamples%2FMultipart_Posts.php;fp=docs%2Fexamples%2FMultipart_Posts.php;h=0000000000000000000000000000000000000000;hb=391976a207cfc3effffa0bdbfa14829eb753e9aa;hp=2656b313bf8cddfa8b724f25e1b51bfd05ab994b;hpb=a24c825ac83a673d31b8c57ec89e9f5667e4668d;p=m6w6%2Fext-http diff --git a/docs/examples/Multipart_Posts.php b/docs/examples/Multipart_Posts.php deleted file mode 100644 index 2656b31..0000000 --- a/docs/examples/Multipart_Posts.php +++ /dev/null @@ -1,26 +0,0 @@ -setOptions( - array( 'cookies' => array('MyCookie' => 'has a value'), - 'redirect' => true, - ) -); - -// common form data -$r->setPostFields( - array( 'name' => 'Mike', - 'mail' => 'mike@php.net', - ) -); -// add the file to post (form name, file name, file type) -$r->addPostFile('image', 'profile.jpg', 'image/jpeg'); - -try { - print $r->send()->getBody(); -} catch (HttpException $e) { - print $e; -} -?>