wxdebugreportuploadthis class is used to upload a compressed file using http post request. as this class derives from wxdebugreportcompress, before upload the report is compressed in a single .zip file. derived from include files <wx/debugrpt.h> members
wxdebugreportupload::wxdebugreportupload
wxdebugreportupload::wxdebugreportuploadwxdebugreportupload(const wxstring& url, const wxstring& input, const wxstring& action, const wxstring& curl = _t("curl")) this class will upload the compressed file created by its base class to an html multipart/form-data form at the specified address. the url is the upload page address, input is the name of the "type=file" control on the form used for the file name and action is the value of the form action field. the report is uploaded using curl program which should be available, the curl parameter may be used to specify the full path to it.
wxdebugreportupload::onserverreplybool onserverreply(const wxarraystring& wxunused(reply)) this function may be overridden in a derived class to show the output from curl: this may be an html page or anything else that the server returned. value returned by this function becomes the return value of wxdebugreport::process().
|