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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -