make first and last part of http template