diff options
| -rw-r--r-- | src/httpget.cpp | 3 | ||||
| -rw-r--r-- | src/sbuffer.h | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/httpget.cpp b/src/httpget.cpp index ebbdfe3..dc25aa1 100644 --- a/src/httpget.cpp +++ b/src/httpget.cpp | |||
| @@ -159,7 +159,8 @@ SBuffer *HttpGet::get() | |||
| 159 | con.open( sHost.c_str(), 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() ) |
| 163 | printf("Read %db\n", con.getInputAmnt() ); | ||
| 163 | 164 | ||
| 164 | int total = con.getInputAmnt(); | 165 | int total = con.getInputAmnt(); |
| 165 | const char *dat = con.getInput(); | 166 | const char *dat = con.getInput(); |
diff --git a/src/sbuffer.h b/src/sbuffer.h index 1dda33a..5352bda 100644 --- a/src/sbuffer.h +++ b/src/sbuffer.h | |||
| @@ -25,6 +25,11 @@ public: | |||
| 25 | virtual void setPos( long pos ); | 25 | virtual void setPos( long pos ); |
| 26 | virtual void setPosEnd( long pos ); | 26 | virtual void setPosEnd( long pos ); |
| 27 | 27 | ||
| 28 | FlexBuf &getBuffer() | ||
| 29 | { | ||
| 30 | return fbData; | ||
| 31 | } | ||
| 32 | |||
| 28 | private: | 33 | private: |
| 29 | long nPos; | 34 | long nPos; |
| 30 | bool bOpen; | 35 | bool bOpen; |
