Implementation of add method.
| 52 | |
| 53 | // Implementation of add method. |
| 54 | void curl_form::add(const curl_pair<CURLformoption,string> &form_name, |
| 55 | const curl_pair<CURLformoption,string> &form_content) { |
| 56 | |
| 57 | if (curl_formadd(&this->form_post,&this->last_ptr, |
| 58 | form_name.first(),form_name.second(), |
| 59 | form_content.first(),form_content.second(), |
| 60 | CURLFORM_END) != 0) { |
| 61 | |
| 62 | throw curl_exception("Error while adding the form",__FUNCTION__); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | // Implementation of overloaded add method. |
| 67 | void curl_form::add(const curl_pair<CURLformoption,string> &form_name, |