MCPcopy Create free account
hub / github.com/bumptop/BumpTop / postHttpRequest

Method postHttpRequest

trunk/win/Source/OAuthClient.cpp:59–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59QString OAuthClient::postHttpRequest( QString url, QHash<QString, QString> params )
60{
61 QString queryParams = ftManager->encodeParams(params);
62 QString serverAddr = QString("%1?%2")
63 .arg(url)
64 .arg(queryParams);
65 FileTransfer ft(FileTransfer::Download, 0);
66 ft.setUrl(serverAddr);
67 ft.setTemporaryString();
68 ft.setTimeout(10);
69 bool succeeded = ftManager->addPostTransfer(ft, true);
70 return ft.getTemporaryString();
71}
72
73QString OAuthClient::postRequest( QString url, QString method, QHash<QString, QString> params )
74{

Callers

nothing calls this directly

Calls 6

encodeParamsMethod · 0.80
addPostTransferMethod · 0.80
getTemporaryStringMethod · 0.80
QStringFunction · 0.50
argMethod · 0.45
setTimeoutMethod · 0.45

Tested by

no test coverage detected