Simple enough question, and I'm drawing a blank and can't find anything relevant in the wiki or the forums:
Just looking for the correct syntax ..
if exists Host then replace HTTP::host...
The wiki page for HTTP::header (Click here) indicates that if the header doesn't exist already, it will be inserted, so Deb's example should work perfectly.