ss << d_url_suffix;
req.setup(verb, ss.str());
+ req.headers["accept"] = "application/json";
}
std::string out = makeStringFromDocument(input);
req.headers["Content-Type"] = "text/javascript; charset=utf-8";
req.headers["Content-Length"] = boost::lexical_cast<std::string>(out.size());
+ req.headers["accept"] = "application/json";
req.body = out;
} else {
std::stringstream url,content;
// then build content
req.POST()["parameters"] = output.GetString();
req.preparePost();
+ req.headers["accept"] = "application/json";
}
}