Welcome To Snipplr


Everyone's Recent Snippets Tagged http



As seen on PinoyTux Website
1 926 posted 14 years ago by batamire
This thread downloads file via url.
2 1289 posted 14 years ago by anata
This set of headers works for me when I output file data from the database for the user to save or open.
0 1252 posted 14 years ago by bradless
make sure the en1 value is the interface you are using
1 792 posted 14 years ago by adkatrit
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 1066 posted 14 years ago by narkisr
Sniffing http request & response using pcap in Ruby.
2 838 posted 14 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 1034 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 871 posted 15 years ago by paulgrenwood
0 651 posted 15 years ago by manatlan
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 786 posted 15 years ago by sensimevanidus
Split a string containing HTTP response into a array with HTTP headers and a string with HTTP content
1 1116 posted 15 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 663 posted 15 years ago by iloveitaly
0 925 posted 15 years ago by atr000
I see almost all GET, so this is handy to have around
0 835 posted 15 years ago by atr000
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 1226 posted 15 years ago by tobaco
Connects to a web page, reads in the content and strips whitespace.
2 900 posted 15 years ago by gdvickery
Just provide $availableLanguages as an array('en', 'de', 'es')
5 1703 posted 15 years ago by ping_ch
this funciton returns an XMLHttpRequest object for use in ajax pages
1 858 posted 15 years ago by jlvallelonga
1 814 posted 15 years ago by Wiederkehr
2 764 posted 16 years ago by pmd
2 916 posted 16 years ago by mikegreen
0 852 posted 16 years ago by LondonWeb
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 1226 posted 16 years ago by gbot
Creates a SSL connection with delicious API using the HTTP basic authentication.
4 917 posted 16 years ago by pmd
drunkenprogrammer
0 2484 posted 16 years ago by zvasanth
-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 1092 posted 17 years ago by iblis
Parses the given path and creates a http redirect to that page.
1 1011 posted 17 years ago by IanLewis