Reputation: 33
Can someone tell me what a HTTP GET
request with parameters looks like? I'm writing a program in C++ that sends the GET request to a website and gets a response.
I sent this string:
"GET / HTTP/1.1\r\nHost: "+url+"?"+key+"="+value+"\r\nConnection: close\r\n\r\n"
I dont know if this is the right string to send. And can someone give me a size with 1 parameter?
Upvotes: 1
Views: 2264