RWIHttpPostRWIHttpMethod
Networking Tools: Thread-hot Internet Classes (int library)
#include <rw/toolpro/httpmeth.h> RWIHttpPost post("/cgi-bin/env.cgi");
thr, net, int, tls (and possibly std)
RWIHttpPost is a specialization class of RWIHttpMethod. It provides basic formatting for HTTP POST requests. RWIHttpPost is a helper class used to construct the execute method of RWIHttpClient to initiate a possible HTTP POST request. It also has the ability to attach body information as part of a POST request.
RWIHttpPost();
Constructs a default invalid RWIHttpPost object. Uses the assignment operator to initialize such a default RWIHttpPost object.
RWIHttpPost(const RWCString& uri);
Constructs an RWIHttpPost object with the uri argument as the intended URI to which a POST request posts.
void append(const RWCString& str);
Concatenates str to the internal body string.
void appendLine(const RWCString& str);
Concatenates str to the internal body string and appends a newline to the result.
virtual RWCString bodyString() const;
Returns the body contents.
virtual RWCString headerString() const;
Adds a Content-Length header using the length of the body as the associated value, and returns all its associated header information in an RWCString.
RWCString name() const;
Returns RWCString("POST").
©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.