fixed HTTP request issue, now works with hostings and subdomains etc.
This commit is contained in:
parent
0f90e1b979
commit
6832e93963
4
3m.cpp
4
3m.cpp
@ -448,7 +448,7 @@ int status;
|
||||
cout << "Sending HTTP GET request..." << endl;
|
||||
string req = "";
|
||||
stringstream sreq;
|
||||
sreq << "GET " << mld.modinfo << " HTTP/1.0\n\n";
|
||||
sreq << "GET " << mld.modinfo << " HTTP/1.0\n" << "Host: " << mld.server << endl << endl;
|
||||
req = sreq.str();
|
||||
status = send(remote, req.c_str(), req.length(), 0);
|
||||
if(status == -1) {
|
||||
@ -607,7 +607,7 @@ int status;
|
||||
cout << "Sending HTTP GET request..." << endl;
|
||||
string req = "";
|
||||
stringstream sreq;
|
||||
sreq << "GET " << mld.path << " HTTP/1.0\n\n";
|
||||
sreq << "GET " << mld.path << " HTTP/1.0\n" << "Host: " << mld.server << endl << endl;
|
||||
req = sreq.str();
|
||||
status = send(remote, req.c_str(), req.length(), 0);
|
||||
if(status == -1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user