Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.


Problem accessing a site contents

  • vignesh

    I have a problem accessing a site contents using HttpUnit package.  While am using the WebConversion to get the response as follows:

       WebConversation wc = new WebConversation();
       // Obtain the page
       WebRequest request = new GetMethodWebRequest("<site url>");
       WebResponse response = wc.getResponse(request);

    Am getting an exception thrown as:
        SyntaxError: unterminated regular expression literal (httpunit#16(eval); line 1)

    But if i make the javascript disabled as

    Then I could able to access the page and the exception is not thrown.  But the problem I have is then, I have to use the javascript for to get the initial page values populated from a list.

    Do anyone have any idea about this?
    Thank you for your time.