<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/php/tags/http</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 15 Feb 2012 11:26:49 GMT</pubDate>
<item>
<title>(PHP) Check if HTTPS is on in PHP - kf0l</title>
<link>http://snipplr.com/view/62699/check-if-https-is-on-in-php/</link>
<description><![CDATA[ <p>This 'Check if HTTPS is on in PHP'  script accounts for servers which set HTTPS differently. Some servers do not set HTTPS, others set it to 'off', etc. Only checking if HTTPS is on will cause an 'undefined index error' in these cases.</p> ]]></description>
<pubDate>Sun, 22 Jan 2012 10:05:55 GMT</pubDate>
<guid>http://snipplr.com/view/62699/check-if-https-is-on-in-php/</guid>
</item>
<item>
<title>(PHP) Basic cURL wrapper function for PHP - akshay_raje</title>
<link>http://snipplr.com/view/51161/basic-curl-wrapper-function-for-php/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 27 Mar 2011 02:54:28 GMT</pubDate>
<guid>http://snipplr.com/view/51161/basic-curl-wrapper-function-for-php/</guid>
</item>
<item>
<title>(PHP) Check url for http - vonlof</title>
<link>http://snipplr.com/view/50894/check-url-for-http/</link>
<description><![CDATA[ <p>takes a url and appends http to it if http is not present</p> ]]></description>
<pubDate>Mon, 21 Mar 2011 03:50:56 GMT</pubDate>
<guid>http://snipplr.com/view/50894/check-url-for-http/</guid>
</item>
<item>
<title>(PHP) get all POST of GET http arguments - Mazzaroth</title>
<link>http://snipplr.com/view/49232/get-all-post-of-get-http-arguments/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 19 Feb 2011 03:36:03 GMT</pubDate>
<guid>http://snipplr.com/view/49232/get-all-post-of-get-http-arguments/</guid>
</item>
<item>
<title>(PHP) Disable browser cache - mfigge</title>
<link>http://snipplr.com/view/49196/disable-browser-cache/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 18 Feb 2011 13:29:06 GMT</pubDate>
<guid>http://snipplr.com/view/49196/disable-browser-cache/</guid>
</item>
<item>
<title>(PHP) HTTP request class for easy POST/GET manipulation - jschilling</title>
<link>http://snipplr.com/view/46818/http-request-class-for-easy-postget-manipulation/</link>
<description><![CDATA[ <p>Feel free to use this class however you'd like</p> ]]></description>
<pubDate>Sun, 09 Jan 2011 15:31:23 GMT</pubDate>
<guid>http://snipplr.com/view/46818/http-request-class-for-easy-postget-manipulation/</guid>
</item>
<item>
<title>(PHP) proxy.php - bcmoney</title>
<link>http://snipplr.com/view/45550/proxyphp/</link>
<description><![CDATA[ <p>Source to get me started on a PHP proxy using CURL:
http://developer.yahoo.com/javascript/howto-proxy.html

Nice tutorial on using PHP proxy for cross-server JSON without JSONp:
http://benalman.com/projects/php-simple-proxy/

SalesForce.com's full-blown CORS and CRUD supporting REST toolkit proxy: 
https://github.com/developerforce/Force.com-JavaScript-REST-Toolkit/blob/master/proxy.php</p> ]]></description>
<pubDate>Fri, 10 Dec 2010 09:20:21 GMT</pubDate>
<guid>http://snipplr.com/view/45550/proxyphp/</guid>
</item>
<item>
<title>(PHP) Check if request is AJAX request - joshuascott94</title>
<link>http://snipplr.com/view/39644/check-if-request-is-ajax-request/</link>
<description><![CDATA[ <p>Quick and easy way to determine if the HTTP request is an AJAX call or a standard call.  Supports the notion of Unobtrusive JavaScript.</p> ]]></description>
<pubDate>Sat, 28 Aug 2010 15:38:56 GMT</pubDate>
<guid>http://snipplr.com/view/39644/check-if-request-is-ajax-request/</guid>
</item>
<item>
<title>(PHP) Detect most mobile HTTP clients - 3k-</title>
<link>http://snipplr.com/view/39066/detect-most-mobile-http-clients/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 14 Aug 2010 04:55:47 GMT</pubDate>
<guid>http://snipplr.com/view/39066/detect-most-mobile-http-clients/</guid>
</item>
<item>
<title>(PHP) Detect Ajax - brainwaves</title>
<link>http://snipplr.com/view/37601/detect-ajax/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 19 Jul 2010 06:18:51 GMT</pubDate>
<guid>http://snipplr.com/view/37601/detect-ajax/</guid>
</item>
<item>
<title>(PHP) Force HTTP:// on URL - iloveitaly</title>
<link>http://snipplr.com/view/35409/force-http-on-url/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 01 Jun 2010 12:23:42 GMT</pubDate>
<guid>http://snipplr.com/view/35409/force-http-on-url/</guid>
</item>
<item>
<title>(PHP) Prompt user to open or save when delivering file data stored in database with PHP - bradless</title>
<link>http://snipplr.com/view/30225/prompt-user-to-open-or-save-when-delivering-file-data-stored-in-database-with-php/</link>
<description><![CDATA[ <p>This set of headers works for me when I output file data from the database for the user to save or open.</p> ]]></description>
<pubDate>Wed, 24 Mar 2010 14:28:02 GMT</pubDate>
<guid>http://snipplr.com/view/30225/prompt-user-to-open-or-save-when-delivering-file-data-stored-in-database-with-php/</guid>
</item>
<item>
<title>(PHP) PHP HTTP POST images &amp;amp; files - benjaminpearson</title>
<link>http://snipplr.com/view/23428/php-http-post-images--files/</link>
<description><![CDATA[ <p>The following are instructions to "re-post" files that have been already been POSTed to your php script. This can help if you want to have a form (with file upload) that POSTs its data to your own script where the text elements can be handled and then the script POSTs the file for processing/storage on another system.

Basically the key is that you only POST the `$_FILES['tmp_name']` with an "@" symbol prepended.

Spent a good hour trying to figure this out. Thanks to gordon who posted on 08-Sep-2004 10:08 at http://theserverpages.com/php/manual/en/ref.curl.php</p> ]]></description>
<pubDate>Thu, 19 Nov 2009 19:46:42 GMT</pubDate>
<guid>http://snipplr.com/view/23428/php-http-post-images--files/</guid>
</item>
<item>
<title>(PHP) Prepend http to a URL - paulgrenwood</title>
<link>http://snipplr.com/view/20147/prepend-http-to-a-url/</link>
<description><![CDATA[ <p>Some times you need to accept some url as input but users seldom add http:// to it, this code will add http:// to the URL if it’s not there.</p> ]]></description>
<pubDate>Wed, 23 Sep 2009 15:57:32 GMT</pubDate>
<guid>http://snipplr.com/view/20147/prepend-http-to-a-url/</guid>
</item>
<item>
<title>(PHP) parse http response - touv</title>
<link>http://snipplr.com/view/17242/parse-http-response/</link>
<description><![CDATA[ <p>Split a string containing HTTP response into  a array with HTTP headers and a string with HTTP content</p> ]]></description>
<pubDate>Tue, 21 Jul 2009 03:44:04 GMT</pubDate>
<guid>http://snipplr.com/view/17242/parse-http-response/</guid>
</item>
<item>
<title>(PHP) isAjax() - Alexw</title>
<link>http://snipplr.com/view/16624/isajax/</link>
<description><![CDATA[ <p>Returns true is the request was made with one of the Ajax libraries that adds the "X-Reqested-With" HTTP header, for example: jQuery.</p> ]]></description>
<pubDate>Fri, 03 Jul 2009 11:42:36 GMT</pubDate>
<guid>http://snipplr.com/view/16624/isajax/</guid>
</item>
<item>
<title>(PHP) Standardize URL String - iloveitaly</title>
<link>http://snipplr.com/view/15554/standardize-url-string/</link>
<description><![CDATA[ <p>this function processes a URL that 'should' be a full url (i.e. http://something.com/dfsdfs/)
and makes sure it contains http:// for easy inclusion as a link into a href attribute</p> ]]></description>
<pubDate>Fri, 05 Jun 2009 07:51:49 GMT</pubDate>
<guid>http://snipplr.com/view/15554/standardize-url-string/</guid>
</item>
<item>
<title>(PHP) Add HTTP authentication to an application with filter - smokestack</title>
<link>http://snipplr.com/view/15229/add-http-authentication-to-an-application-with-filter/</link>
<description><![CDATA[ <p>From [refactory.org](http://www.refactory.org/s/add_http_authentication_to_an_application_with_filter/view/latest)

httpAuthFilter adds single-user application-wide HTTP authentication.</p> ]]></description>
<pubDate>Fri, 22 May 2009 05:32:55 GMT</pubDate>
<guid>http://snipplr.com/view/15229/add-http-authentication-to-an-application-with-filter/</guid>
</item>
<item>
<title>(PHP) Add http header to force IE8 to render in IE7 mode (PHP-Version) - tobaco</title>
<link>http://snipplr.com/view/13271/add-http-header-to-force-ie8-to-render-in-ie7-mode-phpversion/</link>
<description><![CDATA[ <p>include this snippet in your sites to force InternetExplorer 8 to display your site like InternetExplorer 7

In summary, IE7 compatibility support looks as follows:

IE=7

Display in IE7 Standards mode; Already supported in the IE8 Beta 1 release

IE=EmulateIE7

Display standards DOCTYPEs in IE7 Standards mode; Display quirks DOCTYPEs in Quirks mode; Available through the IE June Security Update for IE8 Beta 1</p> ]]></description>
<pubDate>Thu, 19 Mar 2009 05:45:27 GMT</pubDate>
<guid>http://snipplr.com/view/13271/add-http-header-to-force-ie8-to-render-in-ie7-mode-phpversion/</guid>
</item>
<item>
<title>(PHP) Detect Browser Language - ping_ch</title>
<link>http://snipplr.com/view/12631/detect-browser-language/</link>
<description><![CDATA[ <p>Just provide $availableLanguages as an array('en', 'de', 'es')</p> ]]></description>
<pubDate>Fri, 27 Feb 2009 04:50:26 GMT</pubDate>
<guid>http://snipplr.com/view/12631/detect-browser-language/</guid>
</item>
</channel>
</rss>
