Permalink
Browse files

Added php end tag and disabled php header output

  • Loading branch information...
1 parent 3578c08 commit 290d82fcbea7b7e5c2b0abbdfba890bf05f803dc David Barton committed Aug 21, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 php.html
View
@@ -9,6 +9,7 @@
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "<%= @apiUrl %><%= @url %>");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
+curl_setopt($ch, CURLOPT_HEADER, FALSE);
<% if @method is 'POST': %>curl_setopt($ch, CURLOPT_POST, TRUE);
<% end %><% if @method isnt 'GET' and @method isnt 'POST': %>curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "<%= @method %>");
<% end %><% if @body and @body.length > 0: %>curl_setopt($ch, CURLOPT_POSTFIELDS, <%= @helpers.escape @body.join('') %>);
@@ -18,5 +19,7 @@
echo $response;
+<%= "?>" %>
+
</pre>
</section>

0 comments on commit 290d82f

Please sign in to comment.