Welcome To Snipplr
Everyone's Recent Snippets Tagged http
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This set of headers works for me when I output file data from the database for the user to save or open.
        
        
        
            0 
        
        
            1825 
        
                    posted 15 years ago by bradless
            This is excellent for testing (mocking a SOAP server for example), we use an in memory http server in order to answer client requests.
        
        
        
            0 
        
        
            1569 
        
                    posted 15 years ago by narkisr
            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 the...
        
        
        
            2 
        
        
            1702 
        
                    posted 15 years ago by benjaminpearson
            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.
        
        
        
            1 
        
        
            1539 
        
                    posted 16 years ago by paulgrenwood
            This script tries to detect whether an HTTP Proxy works or not. It uses the HEAD command (high-level version of the lwp-request command) to connect to a given URL (http://www.google.com by default) via the given HTTP Proxy.
It takes 2 arguments; the...
        
        
        
            0 
        
        
            1259 
        
                    posted 16 years ago by sensimevanidus
            Split a string containing HTTP response into  a array with HTTP headers and a string with HTTP content
        
        
        
            1 
        
        
            1732 
        
                    posted 16 years ago by touv
            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
        
        
        
            0 
        
        
            1030 
        
                    posted 16 years ago by iloveitaly
            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 relea...
        
        
        
            3 
        
        
            2767 
        
                    posted 16 years ago by tobaco
            Connects to a web page, reads in the content and strips whitespace.
        
        
        
            2 
        
        
            1576 
        
                    posted 16 years ago by gdvickery
            Just provide $availableLanguages as an array('en', 'de', 'es')
        
        
        
            5 
        
        
            2716 
        
                    posted 16 years ago by ping_ch
            this funciton returns an XMLHttpRequest object for use in ajax pages
        
        
        
            1 
        
        
            1499 
        
                    posted 16 years ago by jlvallelonga
            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...
        
        
        
            3 
        
        
            2822 
        
                    posted 17 years ago by gbot
            Creates a SSL connection with delicious API using the HTTP basic authentication.
        
        
        
            4 
        
        
            1384 
        
                    posted 17 years ago by pmd
            -nd   do not create a hierarchy of directories (save all recursively retrieved files in the current directory)
-r      recursive retrieving
-l1    set maximum recursion depth to 1 (stay in that folder): set to 2 if necessary
--no-parent     do not...
        
        
        
            3 
        
        
            1932 
        
                    posted 18 years ago by iblis
            Parses the given path and creates a http redirect to that page.
        
        
        
            1 
        
        
            1489 
        
                    posted 18 years ago by IanLewis
            
