HttpRequest::HttpRequest(const std::string& uri, const HttpMethod method, const std::string& body)
{
	SetUri(uri);
	SetHttpVersion(HttpVersion(1, 0));
	this->method = method;
	this->body = body;
}
Example #2
0
void
Downloader::Open (const char *verb, const Uri *uri, DownloaderAccessPolicy policy)
{
	LOG_DOWNLOADER ("Downloader::Open (%s, %p)\n", verb, uri);
	
	OpenInitialize ();
	
	request->Open (verb, uri, /* This is probably not right when we use Downloader internally */ NULL, policy);
	if (failed_msg == NULL)
		SetUri (uri);
}
Example #3
0
void sfHttpRequest_SetUri(sfHttpRequest* httpRequest, const char* uri)
{
    CSFML_CALL(httpRequest, SetUri(uri ? uri : ""));
}