PatrickMD.net

Thoughts on Medicine and Software

PatrickMD.net header image 5

Entries from July 14th, 2008

How To Compress HTTP Responses with mod_php

July 14th, 2008 No Comments

For many years, I have been a fan of using compression for HTTP responses. Netscape (and I believe Internet Explorer) have supported the “Content-Encoding: gzip” header for over ten years. In the old days there was some concern over the CPU demand of streaming compression, but modern CPUs are so fast that this [...]

Tags:   · · · · ·

Where can I get all the SSL root certificates?

July 7th, 2008 1 Comment

When using Java, or curl, or other programs to fetch data via SSL, I frequently run into problems with servers that have SSL certificates from a “new” (within the last 10 years) signature authority:

$ curl -v https://api.smugmug.com/
[…]
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html

In [...]

Tags:   · · ·

Simple Ajax App I: Specifying the JSON Feed

July 1st, 2008 No Comments

An Ajax application is great because it allows you to build web applications that respond quickly to users. Ajax is tremendously intimidating because there are so many moving parts that must be understood. The Ajax name alone is all buzzwords: “Asynchronous Javascript and XML”. In this series of posts I will use [...]

Tags:   · ·