Welcome To Snipplr


Everyone's Recent Snippets Tagged http



As seen on PinoyTux Website
1 764 posted 13 years ago by batamire
This thread downloads file via url.
2 1107 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 1054 posted 14 years ago by bradless
make sure the en1 value is the interface you are using
1 638 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 889 posted 14 years ago by narkisr
Sniffing http request & response using pcap in Ruby.
2 657 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 718 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 659 posted 14 years ago by paulgrenwood
0 500 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 585 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 933 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 504 posted 14 years ago by iloveitaly
0 737 posted 14 years ago by atr000
I see almost all GET, so this is handy to have around
0 654 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 1011 posted 15 years ago by tobaco
Connects to a web page, reads in the content and strips whitespace.
2 723 posted 15 years ago by gdvickery
Just provide $availableLanguages as an array('en', 'de', 'es')
5 1440 posted 15 years ago by ping_ch
this funciton returns an XMLHttpRequest object for use in ajax pages
1 684 posted 15 years ago by jlvallelonga
1 647 posted 15 years ago by Wiederkehr
2 586 posted 15 years ago by pmd
2 697 posted 15 years ago by mikegreen
0 692 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 984 posted 15 years ago by gbot
Creates a SSL connection with delicious API using the HTTP basic authentication.
4 719 posted 16 years ago by pmd
drunkenprogrammer
0 2166 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 911 posted 16 years ago by iblis
Parses the given path and creates a http redirect to that page.
1 802 posted 16 years ago by IanLewis