fixing url in http message
simplifying the expression