|
@@ -91,7 +91,7 @@ Answer::Answer( const char *answer )
|
|
|
header += *line;
|
|
|
header += "\n";
|
|
|
}
|
|
|
- if( line->positionVon( "Data:" ) == 0 )
|
|
|
+ if( line->positionVon( "Date:" ) == 0 )
|
|
|
this->date = line->getText() + 6;
|
|
|
if( line->positionVon( "Content-Type:" ) == 0 )
|
|
|
this->contentType = line->getText() + 14;
|
|
@@ -116,6 +116,21 @@ const char *Answer::getData() const
|
|
|
return data;
|
|
|
}
|
|
|
|
|
|
+int Answer::getStatusCode() const
|
|
|
+{
|
|
|
+ return statusNumber;
|
|
|
+}
|
|
|
+
|
|
|
+const char *Answer::getStatusText() const
|
|
|
+{
|
|
|
+ return statusText;
|
|
|
+}
|
|
|
+
|
|
|
+const char *Answer::getDate() const
|
|
|
+{
|
|
|
+ return date;
|
|
|
+}
|
|
|
+
|
|
|
Answer *Answer::getThis()
|
|
|
{
|
|
|
ref++;
|