X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=docs%2Fexamples%2Ftutorial.txt;h=fbe9f210758fc659d7bdec23bbd57f5fcf083dd6;hp=96ee9de72cd4652ccb7b9c1f3e856a77beaa6ae4;hb=e7e38363a2e833933519deb5f649d34fd7cc658d;hpb=fb9722e3794bd20bf1012ab6936533a25b0ed1fe diff --git a/docs/examples/tutorial.txt b/docs/examples/tutorial.txt index 96ee9de..fbe9f21 100644 --- a/docs/examples/tutorial.txt +++ b/docs/examples/tutorial.txt @@ -28,7 +28,7 @@ $r->setQueryData( ); // HttpRequest::send() returns an HttpMessage object -// of type HttpMessage::RESPONSE or throws an exception +// of type HttpMessage::TYPE_RESPONSE or throws an exception try { print $r->send()->getBody(); } catch (HttpException $e) { @@ -62,6 +62,7 @@ $r->setPostFields( ) ); // add the file to post (form name, file name, file type) +touch('profile.jpg'); $r->addPostFile('image', 'profile.jpg', 'image/jpeg'); try {