BAE Systems interview question

HTTP request using Javascript