Closed Bug 455489 Opened 16 years ago Closed 16 years ago

Add support for reading request body to JS httpd

Categories

(Testing :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 443610

People

(Reporter: Honza, Unassigned)

Details

I am using httpd.js in automated unit-test framework for Firebug and in some tests I need to access the request post body. The problem is that httpd.js parses only the first request line, request headers and skips the request body.

See the following source code snippet from onInputStreamReady method.

    switch (this._state)
    {
      case READER_INITIAL:
        moreAvailable = this._processRequestLine(input, count);
        break;

      case READER_IN_HEADERS:
        moreAvailable = this._processHeaders(input, count);
        break;

      case READER_IN_BODY:
        // XXX handle the request body!  until then, just stop reading
        break;

      default:
        NS_ASSERT(false);
    }

I am sure that this would be useful even for Mochitest tests.

Honza
Component: Testing → httpd.js
Product: Core → Testing
QA Contact: testing → httpd.js
Version: Trunk → unspecified
This is a dup of bug 443610, as amended by bug 462864.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Component: httpd.js → General
You need to log in before you can comment on or make changes to this bug.