HTTP Response Content from HTTP Recorder [message #70557] |
Thu, 11 May 2006 12:19  |
Eclipse User |
|
|
|
Hello,
I am using Hyades' HTTP Recorder to load a single URL. My goal is to verify
that the content of the response - the actual HTML page - is what it should
be. I'd like to write my own custom code to do this, so I tried to open up
the class that was generated by Hyades for the HTTP recording. In this
class (HyadesLogonTest.java), there exists an executeRequest(HttpRequest)
method that has the following line:
HttpResponse response = m_httpExecutor[nUser].execute(request);
It seems to me that I should be able to use response.getBody() to access the
content of my response, but this method always returns null. I would really
appreciate some advice here - is there a way for me to populate getBody()
when Hyades retrieves the response? Alternatively, is there another method
exposed somewhere that will give me access to the content of the HTTP
response?
Thanks,
- Ryan
|
|
|
|
Re: HTTP Response Content from HTTP Recorder [message #70761 is a reply to message #70631] |
Fri, 12 May 2006 14:40  |
Eclipse User |
|
|
|
Thanks Paul. I opened the following defect -
https://bugs.eclipse.org/bugs/show_bug.cgi?id=141599
Regards,
- Ryan
"Paul Slauenwhite" <paules@ca.ibm.com> wrote in message
news:e424ul$jfe$1@utils.eclipse.org...
> Hi Ryan,
> This is a defect with the HttpResponse class. Please open a defect.
> You can open a defect here:
>
> http://www.eclipse.org/tptp/ >> Submit Enhancements & Bugs >> Report a new
> bug. >> TPTP
>
> Paul
> "Ryan Graciano" <graciano@us.ibm.com> wrote in message
> news:e3vo7j$ulp$1@utils.eclipse.org...
> > Hello,
> >
> > I am using Hyades' HTTP Recorder to load a single URL. My goal is to
> verify
> > that the content of the response - the actual HTML page - is what it
> should
> > be. I'd like to write my own custom code to do this, so I tried to open
> up
> > the class that was generated by Hyades for the HTTP recording. In this
> > class (HyadesLogonTest.java), there exists an
executeRequest(HttpRequest)
> > method that has the following line:
> >
> > HttpResponse response = m_httpExecutor[nUser].execute(request);
> >
> > It seems to me that I should be able to use response.getBody() to access
> the
> > content of my response, but this method always returns null. I would
> really
> > appreciate some advice here - is there a way for me to populate
getBody()
> > when Hyades retrieves the response? Alternatively, is there another
> method
> > exposed somewhere that will give me access to the content of the HTTP
> > response?
> >
> > Thanks,
> > - Ryan
> >
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02123 seconds