In reply to Francis Sommerfeld.

They are completely different. Median regression estimates the conditional median of the response as a function of the independent variables. Cubic spline regression is a way to capture nonlinearities by using spline basis functions, but you are estimating the conditional mean of the response.