Add base HTTP request code