// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "http.h"
#endif
m_read = FALSE;
m_proxy_mode = FALSE;
m_post_buf = wxEmptyString;
+ m_http_response = 0;
SetNotify(wxSOCKET_LOST_FLAG);
}
{
wxHeaderIterator it = FindHeader(header);
- return it == m_headers.end() ? wxEmptyString : it->second;
+ return it == m_headers.end() ? wxGetEmptyString() : it->second;
}
void wxHTTP::SetPostBuffer(const wxString& post_buf)
return FALSE;
}
+ m_http_response = 0;
+
// If there is no User-Agent defined, define it.
if (GetHeader(wxT("User-Agent")).IsNull())
SetHeader(wxT("User-Agent"), wxT("wxWindows 2.x"));
token.NextToken();
tmp_str2 = token.NextToken();
+ m_http_response = wxAtoi(tmp_str2);
+
switch (tmp_str2[0u]) {
case wxT('1'):
/* INFORMATION / SUCCESS */