case wxHTTP_POST:
request = wxT("POST");
if ( GetHeader( wxT("Content-Length") ).IsNull() )
- SetHeader( wxT("Content-Length"), wxString::Format( wxT("%ld"), m_post_buf.Len() ) );
+ SetHeader( wxT("Content-Length"), wxString::Format( wxT("%lu"), (unsigned long)m_post_buf.Len() ) );
break;
default:
return FALSE;
SetHeader(wxT("User-Agent"), wxT("wxWidgets 2.x"));
SaveState();
+#if wxUSE_THREADS
SetFlags( wxThread::IsMain() ? wxSOCKET_NONE : wxSOCKET_BLOCK );
+#else
+ SetFlags( wxSOCKET_NONE );
+#endif
Notify(FALSE);
wxString buf;