c++ - Cannot send HTTP request to subdomain alias -


i have php page on website trying send http requests through c++. webpage being run through school loves use subdomains.

the page on 1 domain, suba.xxx.website.edu. when lookup address, find out suba.xxx.website.edu alias subb.xxx.website.edu, , returned ip address subb.

the problem subb.xxx.website.edu/precise/page.php not lead me same place suba.xxx.webiste.edu/precise/page.php. how can specify want access suba.xxx.website.edu in http? can ip xxx.website.edu.

here code clarification (after creating unix socket)

string mes; mes = "get /precise/page.html http/1.1\n"; mes += "host: "; mes += argv[1];  // url or ip of webpage  mes += "\n\n"; send(s, mes.c_str(), mes.length(), 0); 


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -