RFC fun

2007-12-19

Permalink 21:58:13, by jaervosz Email , 263 words, 677 views   English (EU)
Categories: Gentoo, Universe/English

RFC fun

Today at work we ended up having a nice discussion about how to interpret a small section of RFC 2616 in relation to load balancers. The section in question was:

A "host" without any trailing port information implies the default port for the service requested (e.g., "80" for an HTTP URL).

But first some background: We have web applications running behind HTTPS load balancers which terminate SSL traffic. The webapps are running on a non standard port and they were making some strange redirections. The load balancers don't rewrite the HTTP Host header, so the request go as plain HTTP to a non standard port requesting a host without a port number, like Host:www.example.com. The problem was that the web applications then explicitly added :80 to the redirection URL causing clients to caugh when they saw URLs like https://www.example.com:80/ (note the https added by the load balancer and the port number added by the web application). Apparently the RFC doesn't state that it is forbidden to add the port number even when it is not specified in the Host header but OTOH other applications don't include the port number in redirect when you don't include port numbers in the HTTP Host header.

In the end we got things fixed but how and why I'll post another day. First I'd like to hear opinions about how the proper way to do this.

BTW: At work we're seeking skilled Java developers, anyone interested is welcome to drop me a line (and we're a Linux shop if anyone should be in doubt).

PermalinkPermalink Leave a commentTrackback (0)

No comment yet...

Trackback address for this post:

This is a captcha-picture. It is used to prevent mass-access by robots.

Please enter the characters from the image above. (case insensitive)

Comments, Trackbacks, Pingbacks:

No Comments/Trackbacks/Pingbacks for this post yet...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))
This is a captcha-picture. It is used to prevent mass-access by robots.

Please enter the characters from the image above. (case insensitive)

Search

Categories

Varius local stuff

Friends

Gentoo

Too Cool for Internet Explorer