NXP-11476: don't create HTTP session if not needed