#pragma implementation "http.h"
#endif
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+#pragma hdrstop
+#endif
+
+#ifndef WX_PRECOMP
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include "wx/string.h"
#include "wx/protocol/http.h"
#include "wx/sckstrm.h"
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-
#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxHTTP, wxProtocol)
IMPLEMENT_PROTOCOL(wxHTTP, "http", "80", TRUE)
wxHTTP::~wxHTTP()
{
// wxString isn't a wxObject
- wxNode *node = m_headers.First();
+ wxNode *node = m_headers.First();
wxString *string;
while (node) {
{
wxNode *head = m_headers.First();
- while (head) {
+ while (head)
+ {
wxString *str = (wxString *)head->Data();
- char buf[100];
- sprintf(buf, "%s: %s\n\r", head->key.string, str->GetData());
- Write(buf, strlen(buf));
+ wxString buf;
+ buf.Printf("%s: %s\n\r", head->GetKeyString(), str->GetData());
+
+ Write(buf, buf.Len());
head = head->Next();
}