Removed hard coding of HTTP protocol