first commit
This commit is contained in:
45
test/TestBase64Client.cpp
Normal file
45
test/TestBase64Client.cpp
Normal file
@@ -0,0 +1,45 @@
|
||||
// TestBase64Client.cpp : A simple xmlrpc client that returns a png file
|
||||
|
||||
// encoded as base64 data to the client.
|
||||
|
||||
//
|
||||
|
||||
// Usage: TestBase64Client serverHost serverPort outputfile
|
||||
|
||||
// Requests a png file from the specified server and saves it in outputfile.
|
||||
|
||||
// Link against xmlrpc lib and whatever socket libs your system needs (ws2_32.lib on windows)
|
||||
|
||||
|
||||
|
||||
#include "XmlRpc.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <fstream>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
|
||||
using namespace XmlRpc;
|
||||
|
||||
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
|
||||
{
|
||||
|
||||
if (argc != 4) {
|
||||
|
||||
std::cerr << "Usage: TestBase64Client serverHost serverPort outputFile\n";
|
||||
|
||||
return -1;
|
||||
|
||||
}
|
||||
|
||||
int port = atoi(argv[2]);
|
||||
|
||||
|
||||
|
||||
//XmlRpc::setVerbosity(5);
|
||||
Reference in New Issue
Block a user