From 494b0df8957ab4926ef46c4751e468e4d1840424 Mon Sep 17 00:00:00 2001 From: thefosk Date: Fri, 1 Nov 2013 19:48:47 -0700 Subject: [PATCH] readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fec2961..22e3780 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ $response->body; // Parsed body $response->raw_body; // Unparsed body ``` -## File Uploads +### File Uploads To upload files in a multipart form representation simply place an `@` symbol before the path: @@ -72,7 +72,7 @@ $response = Unirest::post("http://httpbin.org/post", array( "Accept" => "applica ); ``` -## Custom Entity Body +### Custom Entity Body Sending a custom body such as a JSON Object rather than a string or form style parameters we utilize json_encode for the body: ```php $response = Unirest::post("http://httpbin.org/post", array( "Accept" => "application/json" ),