<?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/tags/http</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 21 May 2013 07:34:38 GMT</pubDate>
<item>
<title>(PHP) HTTP Redirection in PHP - apphp-snippets</title>
<link>http://snipplr.com/view/69924/http-redirection-in-php/</link>
<description><![CDATA[ <p>Allows to perform PHP redirection (must be placed before any browser output).</p> ]]></description>
<pubDate>Wed, 13 Feb 2013 20:09:41 GMT</pubDate>
<guid>http://snipplr.com/view/69924/http-redirection-in-php/</guid>
</item>
<item>
<title>(Regular Expression) Regular Expression for Matching URLs with or without http(s) - brandonjp</title>
<link>http://snipplr.com/view/68530/regular-expression-for-matching-urls-with-or-without-https/</link>
<description><![CDATA[ <p>thanks to... 
http://gskinner.com/RegExr/
http://daringfireball.net/2010/07/improved_regex_for_matching_urls</p> ]]></description>
<pubDate>Tue, 13 Nov 2012 07:34:18 GMT</pubDate>
<guid>http://snipplr.com/view/68530/regular-expression-for-matching-urls-with-or-without-https/</guid>
</item>
<item>
<title>(PHP) No Cache HTTP Headers - ryantxr</title>
<link>http://snipplr.com/view/65544/no-cache-http-headers/</link>
<description><![CDATA[ <p>HTTP headers to disable caching.</p> ]]></description>
<pubDate>Mon, 11 Jun 2012 22:38:26 GMT</pubDate>
<guid>http://snipplr.com/view/65544/no-cache-http-headers/</guid>
</item>
<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>(C#) Download text or bytes via HTTP - dkirkland</title>
<link>http://snipplr.com/view/60553/download-text-or-bytes-via-http/</link>
<description><![CDATA[ <p>Downloads contents as a byte array or string, depending on need.</p> ]]></description>
<pubDate>Fri, 04 Nov 2011 20:40:55 GMT</pubDate>
<guid>http://snipplr.com/view/60553/download-text-or-bytes-via-http/</guid>
</item>
<item>
<title>(Apache) Simple mod_rewrite example - .htaccess - jerryvig</title>
<link>http://snipplr.com/view/59942/simple-modrewrite-example--htaccess/</link>
<description><![CDATA[ <p>Maps photos.php?a=03 to photos/Mykonos and photos.php?a=04 to photos/Santorini</p> ]]></description>
<pubDate>Wed, 19 Oct 2011 13:55:29 GMT</pubDate>
<guid>http://snipplr.com/view/59942/simple-modrewrite-example--htaccess/</guid>
</item>
<item>
<title>(Apache) .htaccess add/remove www to domain redirect - macodev</title>
<link>http://snipplr.com/view/59367/htaccess-addremove-www-to-domain-redirect/</link>
<description><![CDATA[ <p>Rrewrite "www.domain.com -> domain.com" and viceversa</p> ]]></description>
<pubDate>Tue, 04 Oct 2011 02:57:36 GMT</pubDate>
<guid>http://snipplr.com/view/59367/htaccess-addremove-www-to-domain-redirect/</guid>
</item>
<item>
<title>(XML) Starbucks Internal Systems - s3xym4n</title>
<link>http://snipplr.com/view/57890/starbucks-internal-systems/</link>
<description><![CDATA[ <p>It seems that Starbucks allows it's internal systems to share the same network as their free WiFi...</p> ]]></description>
<pubDate>Wed, 17 Aug 2011 07:05:55 GMT</pubDate>
<guid>http://snipplr.com/view/57890/starbucks-internal-systems/</guid>
</item>
<item>
<title>(C) HTTP POST from Arduino (WiFly Library) - parkerkrhoyt</title>
<link>http://snipplr.com/view/57138/http-post-from-arduino-wifly-library/</link>
<description><![CDATA[ <p>This snippet will send an HTTP POST from an Arduino using the WiFly library.  The library is in early alpha, and is a port from the ethernet shield library.  The code here should work with either.  The critical part is the size of the data to send, and the line-breaks in the right places.</p> ]]></description>
<pubDate>Tue, 26 Jul 2011 06:16:44 GMT</pubDate>
<guid>http://snipplr.com/view/57138/http-post-from-arduino-wifly-library/</guid>
</item>
<item>
<title>(Python) Simple Python HTTP Server - Affix</title>
<link>http://snipplr.com/view/55175/simple-python-http-server/</link>
<description><![CDATA[ <p>A very simple HTTP Server written in Python out of boredom.

USAGE :
   1 . Create a htdocs folder in the directory of this script 
   2 . create an index.html file and you are good to go. 

This works with multiple pages however index.html is the default</p> ]]></description>
<pubDate>Sun, 12 Jun 2011 11:05:19 GMT</pubDate>
<guid>http://snipplr.com/view/55175/simple-python-http-server/</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>(HTML) Proper way of loading jQuery from Google\'s CDN with fallback to local lib if necessary - hced</title>
<link>http://snipplr.com/view/45859/proper-way-of-loading-jquery-from-googles-cdn-with-fallback-to-local-lib-if-necessary/</link>
<description><![CDATA[ <p>Proper way of loading libs such as jQuery from Google's CDN. Place these JavaScripts at the bottom for fast page loading. To target different versions, you can be more specific if you want; eg. /1.4/ or even /1.4.4/.

(NOTE: you may either use http:// or https:// depending on your needs. Both will work.)</p> ]]></description>
<pubDate>Fri, 17 Dec 2010 05:28:35 GMT</pubDate>
<guid>http://snipplr.com/view/45859/proper-way-of-loading-jquery-from-googles-cdn-with-fallback-to-local-lib-if-necessary/</guid>
</item>
<item>
<title>(CSS) proxy.css - bcmoney</title>
<link>http://snipplr.com/view/45568/proxycss/</link>
<description><![CDATA[ <p>Using CSSHttpRequest, a CSS approach to cross-domain AJAX using CSS: http://nb.io/hacks/csshttprequest

(requires use of "csshttprequest.js" + one of the "csshttprequest" server-side scripts)</p> ]]></description>
<pubDate>Fri, 10 Dec 2010 19:24:19 GMT</pubDate>
<guid>http://snipplr.com/view/45568/proxycss/</guid>
</item>
<item>
<title>(Lisp) proxy.lisp - bcmoney</title>
<link>http://snipplr.com/view/45563/proxylisp/</link>
<description><![CDATA[ <p>http://cl-cookbook.sourceforge.net/sockets.html#example</p> ]]></description>
<pubDate>Fri, 10 Dec 2010 12:26:32 GMT</pubDate>
<guid>http://snipplr.com/view/45563/proxylisp/</guid>
</item>
<item>
<title>(Ruby) proxy.rb - bcmoney</title>
<link>http://snipplr.com/view/45562/proxyrb/</link>
<description><![CDATA[ <p>Useful resources: 
https://github.com/yuiseki/chaos_proxy/blob/master/proxy.rb

http://stackoverflow.com/questions/3072682/jquery-consuming-json-resources-some-return-data-others-dont-why

http://www.java-samples.com/showtutorial.php?tutorialid=1118

http://stackoverflow.com/questions/2500462/how-to-extract-url-parameters-from-a-url-with-ruby-or-rails

http://guides.rubyonrails.org/command_line.html

http://ruby-doc.org/core/classes/String.html#M000839

http://rails.nuvvo.com/lesson/6371-action-controller-parameters

http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/classes/Net/HTTP.html

http://net.tutsplus.com/tutorials/ruby/ruby-for-newbies-conditional-statements-and-loops/

http://dirk.net/2009/09/16/globalizing-the-current-url-in-a-rails-view/</p> ]]></description>
<pubDate>Fri, 10 Dec 2010 12:18:40 GMT</pubDate>
<guid>http://snipplr.com/view/45562/proxyrb/</guid>
</item>
<item>
<title>(C++) proxy.cpp - bcmoney</title>
<link>http://snipplr.com/view/45561/proxycpp/</link>
<description><![CDATA[ <p>Simple library cpp-netlib: http://cpp-netlib.github.com/

CURL wrapper: http://curlpp.org/index.php/examples/

Other resources:

http://msdn.microsoft.com/en-us/library/dd323349(VS.85).aspx#wsw.httpclient.cpp

http://www.codeproject.com/KB/IP/CppHttpWebForm.aspx

http://read.pudn.com/downloads/sourcecode/windows/internet/624/Proxy.cpp__.htm

http://cpp-netlib.svn.sourceforge.net/viewvc/cpp-netlib/trunk/libs/network/example/http_client.cpp?view=markup

http://projectivemotion.com/news/using-libcurl-with-c-simple-oop-static-class-exampleusando-libcurl-en-c-ejemplo-de-oop

http://www.learncpp.com/cpp-tutorial/713-command-line-arguments/</p> ]]></description>
<pubDate>Fri, 10 Dec 2010 11:36:03 GMT</pubDate>
<guid>http://snipplr.com/view/45561/proxycpp/</guid>
</item>
</channel>
</rss>