- sprintf(buf, "%s %s\n\r", tmp_buf, (const char*) pathbuf);
- Write(buf, strlen(buf));
+ tmp_str = wxURL::ConvertToValidURI(path);
+ wxSprintf(buf, _T("%s %s HTTP/1.0\n\r"), tmp_buf, tmp_str.GetData());
+ const wxWX2MBbuf pathbuf = wxConvLibc.cWX2MB(buf);
+ Write(pathbuf, strlen(MBSTRINGCAST pathbuf));