if (line.Length() == 0)
break;
- printf("Header: %s\n", WXSTRINGCAST line);
tokenzr.SetString(line, " :\t\n\r");
if (!tokenzr.HasMoreToken())
return FALSE;
}
SaveState();
+ SetFlags(NONE);
Notify(FALSE);
- SetFlags(WAITALL);
- sprintf(buf, "%s %s HTTP/1.0\n\r", tmp_buf, (const char*)pathbuf);
+ sprintf(buf, "%s %s\n\r", tmp_buf, (const char*) pathbuf);
Write(buf, strlen(buf));
SendHeaders();
sprintf(buf, "\n\r");
if (!GetHeader(_T("Content-Length")).IsEmpty())
inp_stream->m_httpsize = wxAtoi(WXSTRINGCAST GetHeader(_T("Content-Length")));
+ SetFlags(WAITALL);
return inp_stream;
}