| 232 | } |
| 233 | |
| 234 | bool http_mime::save_to(const char *file_path) { |
| 235 | fstream fp; |
| 236 | if (!fp.open_trunc(file_path)) { |
| 237 | logger_error("open %s failed(%s)", file_path, last_serror()); |
| 238 | return false; |
| 239 | } |
| 240 | return save_to(fp); |
| 241 | } |
| 242 | |
| 243 | bool http_mime::save_to(ostream &out) { |
| 244 | std::string bound("--"); |