Tag Archives: HTTP Header

USER_AGENT Blocking – sowas gibt’s wirklich!

schon kindisch, oder? $ curl –head http://www.wetteronline.de/wetter/traunstein HTTP/1.1 403 Forbidden Server: AkamaiGHost Mime-Version: 1.0 Content-Type: text/html Content-Length: 290 Expires: Mon, 27 Apr 2015 21:01:07 GMT Date: Mon, 27 Apr 2015 21:01:07 GMT Connection: keep-alive Vary: User-Agent   $ curl -A Mozilla –head http://www.wetteronline.de/wetter/traunstein HTTP/1.1 200 OK Server: Apache res-obj: www Content-Type: text/html; charset=UTF-8 Date: Mon, […]

Why PHP is utterly broken

tl;dr: neither does DATE_RFC1123 produce a rfc1123-date, nor does DATE_RFC850 a rfc850-date. What sense does that make? This example may look scrupulous but seems typical. Mind the mandatory word ‚GMT‚ at the end of rfc1123-date. While DATE_RFC1123 renders something ending with +0000. Which is the same timezone but not the same string. So DATE_RFC1123 is useless for HTTP headers (RFC2616). I wonder what else […]

NSDateFormatter & Http Header

A.S. Update 2, License: as I’ve been asked about which license this code is under: I put this into Public Domain. No warranty whatsoever. Still I’d be happy about attribution but don’t require such. Ever tried to get e.g. the „Last-Modified“ HTTP response header field into a NSDate object? That’s no real fun, because this […]