All pastes #535015 Raw Edit

Miscellany

public cpp v1 · immutable
·published 2007-06-03 23:47 UTC
rendered paste body
        HTTPSocket::Parameters params;        params.push_back(std::make_pair(_T("fname"), _T("Peter")));        params.push_back(std::make_pair(_T("lname"), _T("Andersson")));                HTTPSocket::Files files;        HTTPFile myfile(L"somefile.txt", HTTPFile::MimeTextPlain);                files.push_back(std::make_pair(_T("somevar"), myfile));                httptest.post(_T("www.dius.org"),                      80,                      params,                      files,                      HTTPRequest(_T("/filetest.php")));