diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
commit | 3df4acfa816441fc28a95dee6d0191a927145d95 (patch) | |
tree | b5ae7ca44662cfd8e5c95f1826e4406021a606f5 /apps/JAWS2/HTTPU/http_request.cpp | |
parent | 60a5612b83d856fc0adc52b9f39fac9960ec9818 (diff) | |
download | ATCD-pre-subset.tar.gz |
This commit was manufactured by cvs2svn to create tag 'pre-subset'.pre-subset
Diffstat (limited to 'apps/JAWS2/HTTPU/http_request.cpp')
-rw-r--r-- | apps/JAWS2/HTTPU/http_request.cpp | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/apps/JAWS2/HTTPU/http_request.cpp b/apps/JAWS2/HTTPU/http_request.cpp deleted file mode 100644 index ac1c08028e0..00000000000 --- a/apps/JAWS2/HTTPU/http_request.cpp +++ /dev/null @@ -1,86 +0,0 @@ -// $Id$ - -#include "HTTPU/http_request.h" -#include "HTTPU/parse_http_request.h" - -void -HTTP_Request::parse_line (void) -{ - this->status_ = STATUS_OK; - - this->request_.init (this->line ()); - if (this->request_.error () != Parse_HTTP_Request::HTTPU_OK) - { - this->status_ = STATUS_INTERNAL_SERVER_ERROR; - return; - } - if (this->request_.major_version () == 0) - { - this->no_headers_ = 1; - return; - } - - this->url_.init (this->request_.url ()); - if (this->url_.error () != 0) - this->status_ = STATUS_INTERNAL_SERVER_ERROR; -} - -int -HTTP_Request::espouse_line (void) -{ - int count; - - if (this->request_.major_version () == 0) - { - count = ACE_OS::sprintf (this->mb_->wr_ptr (), "%s /%s\r\n\r\n", - this->request_.method_str (), - this->url_.url_path ()); - - if (count < 0) - return -1; - - this->mb_->wr_ptr (count); - - return 1; - } - - count = ACE_OS::sprintf (this->mb_->wr_ptr (), "%s /%s %s\r\n", - this->request_.method_str (), - this->url_.url_path (), - this->request_.version ()); - - if (count < 0) - return -1; - - this->mb_->wr_ptr (count); - - if (this->url_.host () != 0) - { - JAWS_Header_Data *hd = this->headers ()->find ("Host"); - if (hd == 0) - { - count = ACE_OS::sprintf (this->mb_->wr_ptr (), "Host: %s\r\n", - this->url_.host ()); - - if (count < 0) - return -1; - - this->mb_->wr_ptr (count); - } - } - - return 0; -} - -void -HTTP_Request::dump (void) -{ - ACE_DEBUG ((LM_DEBUG, "===== BEGIN entera_HTTP_Request::dump =====\n")); - HTTP_Base::dump (); - this->request_.dump (); - ACE_DEBUG ((LM_DEBUG, "===== END entera_HTTP_Request::dump =====\n")); -} - -#if !defined (ACE_HAS_INLINED_OSCALLS) -# include "HTTPU/http_request.i" -# endif /* ACE_HAS_INLINED_OSCALLS */ |