Which is the appropriate code to begin a HTTP GET request?
A
request.open(“GET”,”data”);
B
request.open(GET,”data.csv”);
C
request.open(“GET”,”data.csv”);
D
request.open(“GET”);
Correct Answer: request.open(“GET”,”data.csv”);
The code that begins a HTTP GET request for the contents of the specified URL is request.open("GET","data.csv"); To send a request to a server open() and send() methods of the XMLHttpRequest object are used.