| 383 | } |
| 384 | |
| 385 | const HttpCookie* http_header::get_cookie(const char* name) const |
| 386 | { |
| 387 | if (name == NULL || *name == 0) { |
| 388 | return NULL; |
| 389 | } |
| 390 | |
| 391 | for (std::list<HttpCookie*>::const_iterator cit = cookies_.begin(); |
| 392 | cit != cookies_.end(); ++cit) { |
| 393 | |
| 394 | if (!strcasecmp((*cit)->getName(), name)) { |
| 395 | return *cit; |
| 396 | } |
| 397 | } |
| 398 | |
| 399 | return NULL; |
| 400 | } |
| 401 | |
| 402 | void http_header::add_res_cookie(const HTTP_HDR_ENTRY& entry) |
| 403 | { |