Darktrace Interview Question

What would you consider when writing a function to send a request to a webpage?