byteblowerll.byteblower.HTTPClient

class byteblowerll.byteblower.HTTPClient(*args, **kwargs)

HTTP client application that may schedule HTTP requests to real webservers or the HTTP server application.

Using this class, you can simulate TCP (Transmission Control Protocol) traffic The TCP is simulated by a HTML request to the HTTPServer. This is the HttpClient that will perform the GET or the PUT. This request can be sent to the HTTPServer or even a real HTTPServer.

httpClient = port.ProtocolHttpClientAdd()
httpClient.RemoteAddressSet('1.1.1.1')
httpClient.RemotePortSet(80)
httpClient.CaptureEnable()
httpClient.RequestDurationSet(10 * 1000)
httpClient.ReceiveWindowScalingValueSet(7)
httpClient.SlowStartThresholdSet(2000000000)
httpClient.RequestStart()
__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

Methods

CaptureClear()
CaptureEnable([inValue]) Enable the capture of the HTTPData.
CaptureGet() Return the captured HTTP Data.
ClientIdGet() Returns the unique client ID.
DescriptionGet(*args) Gets a textual description for the current object
ErrorMessageGet() Returns the error message.
FinishedGet() Returns whether or not the HTTP session has finished.
FlowLabelGet() Returns the configured “Flow Label” for IPv6 flows.
FlowLabelSet(value) Configures the flow label for IPv6 flows.
HasError() Returns true if an error has occurred.
HasSession() Returns whether or not we have a HTTP session.
HistorySamplingBufferLengthGet() Gets the default Sampling Buffer Length for the HTTP Session history.
HistorySamplingBufferLengthSet(inLength) Sets the default Sampling Buffer Length for the HTTP Session history.
HistorySamplingIntervalDurationGet() Gets the default Sampling interval for the HTTP Session history.
HistorySamplingIntervalDurationSet(inDuration) Sets the default Sampling interval for the HTTP Session history.
HttpMethodGet() Returns the used HTTPRequest method.
HttpMethodSet(*args) Configures the HTTPRequest method to be used.
HttpSessionInfoDestroy()
HttpSessionInfoGet() Returns the HttpSessionInfo from this session.
IsCaptureEnabled()
IsLatencyEnabled()
LatencyEnable([inValue])
LocalPortGet() Returns the TCP the httpclient will use to send its HTTPRequest.
LocalPortSet(inPort) Configure the TCP port for the client to use.
MaximumSegmentSizeGet() Returns the configured TCP maximum segment size.
MaximumSegmentSizeSet(inValue) Sets the TCP maximum segment size.
ParentGet() Returns the parent object.
ReceiveWindowInitialSizeGet() Gets the initial receive window for the client.
ReceiveWindowInitialSizeSet(inValue) Sets the initial receive window for the client.
ReceiveWindowScalingEnable(inEnable) Enables of disables windowscaling.
ReceiveWindowScalingIsEnabled() Returns if windowscaling is enabled or not.
ReceiveWindowScalingValueGet() Returns the current receive window scale.
ReceiveWindowScalingValueSet(inValue) Configures the window scale which will be used for the client.
Refresh() Retrieves the latest data from the server for this object.
RemoteAddressGet() Return the configured destination address.
RemoteAddressSet(inAddress) Configure the destination address.
RemotePortGet() Returns the configured destination port.
RemotePortSet(inRemotePort) Configure the TCP port which the client will use as destination port.
RequestDurationGet() Method which will return the configured HTTP Request duration.
RequestDurationSet(inDurationNs) Method which will configure a page to send out an HTTP Request to transmit data during a certain time.
RequestInitialTimeToWaitGet() Returns the initial time to wait before a scheduled Request starts.
RequestInitialTimeToWaitSet(inDelay) Sets the initial time to wait before really requesting a page (for a scheduled Request).
RequestPageGet() Method which will get the HTML page which will be requested.
RequestPageSet(arg2) Method which will set the HTML page which will be requested.
RequestRateLimitGet() Method which will return the configured rate-limit of the HTTP traffic.
RequestRateLimitSet(inRateLimitBytesps) Method which will limit the rate of the HTTP traffic to a certain amount..
RequestSizeGet() Method which will return the configured requested pagesize expressed in Bytes.
RequestSizeSet(inRequestSize) Method which will configure a page to send out an HTTP Request to request a certain number of Bytes.
RequestStart() Start the current configured HTTP Request.
RequestStartTypeGet() Returns the current configured Start Type.
RequestStartTypeSet(inRequestStartType) Configures the Start Type of a HTTP Request.
RequestStatusGet() Returns the status of the HTTP request.
RequestStop() This will stop the client.
RequestUriGet() Returns the requested URI.
RequestUriSet(inURI) Method which will set the URI, it contains the complete HTTP URI which will be requested.
ResultGet()
ResultHistoryGet()
ScheduleGet()
ScheduleRemove(inSchedule)
ScheduleRemoveAll()
ScheduleStart()
ScheduleStop()
ServerClientIdGet() This method returns the combination of the server Id ( aka ByteBlower Server Id ) and client Id.
ServerGet()
ServerIdGet() Returns the unique ByteBlower Server ID.
SlowStartThresholdGet() Returns the initial slow-start threshold value used by TCP.
SlowStartThresholdSet(inValue) Set the initial slow-start threshold value used by TCP.
TcpCongestionAvoidanceAlgorithmGet() Gets the current configured TCP Congestion Avoidance Algorithm.
TcpCongestionAvoidanceAlgorithmSet(inValue) Selects the used TCP Congestion Avoidance Algorithm (TCAA).
TcpHistorySamplingBufferLengthGet() Gets the default Sampling Buffer Length for the TCP Session history.
TcpHistorySamplingBufferLengthSet(inLength) Sets the default Sampling Buffer Length for the TCP Session history.
TcpHistorySamplingIntervalDurationGet() Gets the default Sampling interval for the TCP Session history.
TcpHistorySamplingIntervalDurationSet(inDuration) Sets the default Sampling interval for the TCP Session history.
TypeOfServiceGet() Retrieves the ‘Type Of Service’ or ‘Traffic Class’ configuration of the IP layer.
TypeOfServiceSet(value) Configures the ‘Type Of Service’ or ‘Traffic Class’ used at the IP layer.
WaitUntilConnected(timeout) Waits until connection is established or timeout has expired.
WaitUntilFinished(timeout_ns) Waits until request is finished or timeout has expired.
__init__(*args, **kwargs) Initialize self.

Attributes

RequestStartType_Direct
RequestStartType_Scheduled
thisown The membership flag