Ejemplo n.º 1
0
 /// <summary>
 /// Composes a query string with the transfer of content to the server.
 /// </summary>
 /// <param name="path">The path to the resource.</param>
 /// <param name="host">Host.</param>
 /// <param name="content">Content that is sent to the server.</param>
 public void BuildPostQuery(string path, string host, string content)
 {
     _builder.AddMethod("POST");
     _builder.AddPath(path);
     _builder.AddVersion();
     _builder.AddHost(host);
     _builder.AddUserAgent();
     _builder.AddAccept();
     _builder.AddContentType();
     _builder.AddContentLength(content);
     _builder.AddContent(content);
     _builder.AddEndOfQuery();
 }