Menu

Error on a Framed web page.

Luca Cappa
2002-08-25
2002-08-26
  • Luca Cappa

    Luca Cappa - 2002-08-25

    Hello,
    im using httpunit 1.2.4. I cant use any other new version for now. I m doing the following:

    WebConversation l_wc=new WebConversation();
    l_wc.setUserAgent("Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)");
    GetMethodWebRequest l_test=new GetMethodWebRequest("http://www.mypage");
    WebResponse l_wr=l_wc.getResponse(l_test);

    and i always get the following exception:
    "com.meterware.httpunit.HttpInternalErrorException: Error on HTTP request:
    500 [http://www.mypage/frame7 ]"

    The web page has many frame, and with a browser it works correctly, without reporting any error. Where can i look to understand what the error is, how to fix it?
    Can i see a log of all http comunication between server and client, logging it into a file?
    Give me some advice on how to debug this error also.

    Thanks in advance.

    groton

     
    • Russell Gold

      Russell Gold - 2002-08-25

      call HttpUnitOptions.setLoggingHttpHeaders( true ) to start.

      This will log all communications that HttpUnit generates, but not headers generated by HttpURLConnection

      Why can you not at least upgrade to 1.2.7? This could be a bug fixed in that version

       
    • Luca Cappa

      Luca Cappa - 2002-08-25

      I already had enabled that logging, but it doesnot help much since almost all the log is lost in a crap dos box (im on win98), and anyway i dont think it would help greatly.

      I cant use a newer version since im using a server (not mine) with that old version. Maybe i could try to use the latest version on my own computer. i will try it just now.

       
    • Luca Cappa

      Luca Cappa - 2002-08-26

      I tryed to use httpunit.jar 1.4, IT WORKED GREAT!
      So i have really to bother the admin server to install a new version...

       

Log in to post a comment.

Auth0 Logo