wxDebugReportUpload

This 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

wxDebugReportCompress

Include files

<wx/debugrpt.h>



wxDebugReportUpload::wxDebugReportUpload



wxDebugReportUpload(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::OnServerReply



bool 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().

ymasuda 平成17年11月19日