Welcome To Snipplr


Everyone's Recent Snippets Tagged http



JQ - detect users browser language using http headers via ajax jsonp ajaxhttpheaders
1 770 posted 12 years ago by brandonjp
As seen on PinoyTux Website
1 563 posted 12 years ago by batamire
This thread downloads file via url.
2 813 posted 12 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 706 posted 12 years ago by bradless
make sure the en1 value is the interface you are using
1 407 posted 12 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 536 posted 12 years ago by narkisr
Sniffing http request & response using pcap in Ruby.
2 437 posted 12 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 477 posted 12 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 428 posted 13 years ago by paulgrenwood
0 340 posted 13 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 404 posted 13 years ago by sensimevanidus
Split a string containing HTTP response into a array with HTTP headers and a string with HTTP content
1 667 posted 13 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 359 posted 13 years ago by iloveitaly
0 515 posted 13 years ago by atr000
I see almost all GET, so this is handy to have around
0 424 posted 13 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 686 posted 13 years ago by tobaco
Connects to a web page, reads in the content and strips whitespace.
2 511 posted 13 years ago by gdvickery
Just provide $availableLanguages as an array('en', 'de', 'es')
5 1061 posted 13 years ago by ping_ch
this funciton returns an XMLHttpRequest object for use in ajax pages
1 470 posted 13 years ago by jlvallelonga
1 445 posted 13 years ago by Wiederkehr
2 394 posted 13 years ago by pmd
2 413 posted 14 years ago by mikegreen
0 482 posted 14 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 650 posted 14 years ago by gbot
Creates a SSL connection with delicious API using the HTTP basic authentication.
4 484 posted 14 years ago by pmd
drunkenprogrammer
0 1592 posted 14 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 627 posted 14 years ago by iblis