Better way to distinguish between POST and GET request and between https and http requests.
Fixed missing check of claimed_id.
Authored by: chrishypernetch 2012-01-04
Parent: [r179]
Child: [r181]