| 469 | } |
| 470 | |
| 471 | const char* HttpServletRequest::getParameter(const char* name, |
| 472 | bool case_sensitive /* = false */) const |
| 473 | { |
| 474 | std::vector<HTTP_PARAM*>::const_iterator cit = params_.begin(); |
| 475 | if (case_sensitive) { |
| 476 | for (; cit != params_.end(); ++cit) { |
| 477 | if (strcmp((*cit)->name, name) == 0) { |
| 478 | return (*cit)->value; |
| 479 | } |
| 480 | } |
| 481 | } else { |
| 482 | for (; cit != params_.end(); ++cit) { |
| 483 | if (strcasecmp((*cit)->name, name) == 0) { |
| 484 | return (*cit)->value; |
| 485 | } |
| 486 | } |
| 487 | } |
| 488 | |
| 489 | // ����� MIME ��ʽ�����Դ� mime_ �����в�ѯ���� |
| 490 | if (mime_ == NULL) { |
| 491 | return NULL; |
| 492 | } |
| 493 | const http_mime_node* node = mime_->get_node(name); |
| 494 | if (node == NULL) { |
| 495 | return NULL; |
| 496 | } |
| 497 | return node->get_value(); |
| 498 | } |
| 499 | |
| 500 | http_mime* HttpServletRequest::getHttpMime(void) |
| 501 | { |