wxHTTP::~wxHTTP()
{
// wxString isn't a wxObject
- wxNode *node = m_headers.First();
+ wxNode *node = m_headers.First();
wxString *string;
while (node) {
{
wxNode *node = m_headers.Find(header);
if (!node)
- return (char *)NULL;
+ return wxEmptyString;
return *((wxString *)node->Data());
}
{
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();
}
return TRUE;
}
-bool wxHTTP::Connect(wxSockAddress& addr)
+bool wxHTTP::Connect(wxSockAddress& addr, bool WXUNUSED(wait))
{
struct sockaddr *raw_addr;
size_t len;