This class represents captured HTTP data. More...
Methods | |
Description.Get | |
Returns a textual description of the object. | |
Http.Bytes.Get | |
Returns the captured HTTP data. More... | |
Http.Bytes.Save fileName | |
Saves the captured HTTP data to file. More... | |
Http.Size.Get | |
Returns the number of captured bytes of HTTP data. More... | |
Parent.Get | |
Returns the parent object. | |
Refresh | |
Synchronize the local cached captured HTTP data with data on the ByteBlower Server. More... | |
This class represents captured HTTP data.
The HTTP data is a local snapshot of the HTTP data received in a HTTP session at the ByteBlower Server.
HTTP data capture is currently supported on HTTP Client objects.
Layer5.Http.CapturedHttpData::Http.Bytes.Get |
Returns the captured HTTP data.
The data includes both HTTP header and payload.
ByteBlower.Protocol.NotSupported | When the ByteBlower Server does not support HTTP Client captures |
Suppose we sent a HTTP GET request for an 'index.html' test page
Returns:
HTTP/1.1 200 OK Date: Wed, 12 Feb 2014 13:23:32 GMT Server: Apache/2.2.22 (Debian) Last-Modified: Thu, 10 Feb 2011 11:32:16 GMT ETag: "27c083-b1-49bebeefcb000" Accept-Ranges: bytes Content-Length: 177 Vary: Accept-Encoding Content-Type: text/html X-Pad: avoid browser bug <html><body><h1>It works!</h1> <p>This is the default web page for this server.</p> <p>The web server software is running but no content has been added, yet.</p> </body></html>
Layer5.Http.CapturedHttpData::Http.Bytes.Save | fileName | ||
Saves the captured HTTP data to file.
fileName | Destination filename for the captured HTTP data. |
ByteBlower.Protocol.NotSupported | When the ByteBlower Server does not support HTTP Client captures |
Stores all HTTP data captured to c:.txt
Layer5.Http.CapturedHttpData::Http.Size.Get |
Returns the number of captured bytes of HTTP data.
The value includes the size of both HTTP header and payload.
ByteBlower.Protocol.NotSupported | When the ByteBlower Server does not support HTTP Client captures |
Suppose we sent a HTTP GET request for an index.html test page
Returns:
461
Layer5.Http.CapturedHttpData::Refresh |
Synchronize the local cached captured HTTP data with data on the ByteBlower Server.
This method will contact the ByteBlower Server to update the local snapshot with the latest snapshot from the server.
If the update fails the current snapshot will not be altered.
ByteBlower.Protocol.NotSupported | When the ByteBlower Server does not support HTTP Client captures |