Welcome To Snipplr


Everyone's Recent Snippets Tagged http



As seen on PinoyTux Website
1 754 posted 13 years ago by batamire
This thread downloads file via url.
2 1089 posted 13 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 1035 posted 14 years ago by bradless
make sure the en1 value is the interface you are using
1 623 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 871 posted 14 years ago by narkisr
Sniffing http request & response using pcap in Ruby.
2 635 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 702 posted 14 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 637 posted 14 years ago by paulgrenwood
0 492 posted 14 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 574 posted 14 years ago by sensimevanidus
Split a string containing HTTP response into a array with HTTP headers and a string with HTTP content
1 916 posted 14 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 499 posted 14 years ago by iloveitaly
0 718 posted 14 years ago by atr000
I see almost all GET, so this is handy to have around
0 621 posted 14 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 991 posted 15 years ago by tobaco
Connects to a web page, reads in the content and strips whitespace.
2 711 posted 15 years ago by gdvickery
Just provide $availableLanguages as an array('en', 'de', 'es')
5 1425 posted 15 years ago by ping_ch
this funciton returns an XMLHttpRequest object for use in ajax pages
1 675 posted 15 years ago by jlvallelonga
1 639 posted 15 years ago by Wiederkehr
2 574 posted 15 years ago by pmd
2 683 posted 15 years ago by mikegreen
0 681 posted 15 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 959 posted 15 years ago by gbot
Creates a SSL connection with delicious API using the HTTP basic authentication.
4 705 posted 16 years ago by pmd
drunkenprogrammer
0 2144 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 892 posted 16 years ago by iblis
Parses the given path and creates a http redirect to that page.
1 790 posted 16 years ago by IanLewis