0

Im using this example as reference :
How do you make a HTTP request with C++? which working fine ( the first example in the accepted answer ) i wander how can i send Query string so in the server i can parse it . so it will act as :

http//127.0.0.1/?test1=1&test2=2

where here or in other place should it be ?

  send(Socket, "GET / HTTP/1.1\r\nHost: http//127.0.0.1\r\nConnection: close\r\n\r\n", strlen("GET / HTTP/1.1\r\nHost: http//127.0.0.1\r\nConnection: close\r\n\r\n"), 0);
Community
  • 1
  • 1
user63898
  • 29,839
  • 85
  • 272
  • 514

0 Answers0