diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2006-11-03 22:03:15 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2006-11-03 22:03:15 +0000 |
| commit | 5930a7cde8b11cede642e4f1ac0efb6ec06cb19d (patch) | |
| tree | bcdaa932edecc0ca74426a369e14d6eaf22d2d79 | |
| parent | 4595f6844255106a66140828ffb9328860b62411 (diff) | |
| download | libbu++-5930a7cde8b11cede642e4f1ac0efb6ec06cb19d.tar.gz libbu++-5930a7cde8b11cede642e4f1ac0efb6ec06cb19d.tar.bz2 libbu++-5930a7cde8b11cede642e4f1ac0efb6ec06cb19d.tar.xz libbu++-5930a7cde8b11cede642e4f1ac0efb6ec06cb19d.zip | |
HttpGet will actually call the host instead of localhost.
Diffstat (limited to '')
| -rw-r--r-- | src/httpget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/httpget.cpp b/src/httpget.cpp index 6317403..ebbdfe3 100644 --- a/src/httpget.cpp +++ b/src/httpget.cpp | |||
| @@ -156,7 +156,7 @@ SBuffer *HttpGet::get() | |||
| 156 | printf("Connection content:\n\n%s\n\n", sData.c_str() ); | 156 | printf("Connection content:\n\n%s\n\n", sData.c_str() ); |
| 157 | 157 | ||
| 158 | Connection con; | 158 | Connection con; |
| 159 | con.open( "127.0.0.1", nPort ); | 159 | con.open( sHost.c_str(), nPort ); |
| 160 | con.appendOutput( sData.c_str(), sData.size() ); | 160 | con.appendOutput( sData.c_str(), sData.size() ); |
| 161 | con.writeOutput(); | 161 | con.writeOutput(); |
| 162 | while( con.readInput() ); | 162 | while( con.readInput() ); |
