Interface | Description |
---|---|
IHttpRequest |
An interface for sending HTTP request and receiving response.
There are 2 implementations: one is HttpRequest , implemented by HttpURLConnection.the other is XMLHttpRequest , implemented by javascript AJAX. |
Class | Description |
---|---|
HttpRequest |
Send HTTP Request like "Get", "Post", "Put" etc.
|
NetUtilities |
Utilities for network.
|
XMLHttpRequest |
Represents XMLHttpRequest Object, used to
execute HTTP Request within web page through javascript.
NOTE: As this is performed by "AJAX XMLHttpRequest", it is probably not permitted to request an URL of domain other than the Application under test. AJAX Requests are only possible if port, protocol and domain of sender and receiver are equal. This means, that the following requests generally won’t work: Requesting https://foo.bar/target.php from http://foo.bar/source.php Requesting http://sub.foo.bar from http://foo.bar Requesting http://foo.bar:5000 from http://foo.bar If we meet the "cross-domain" problem, we can call HttpRequest.execute(String, String, String, String...) to perform HTTP request. |
Enum | Description |
---|---|
IHttpRequest.HttpCommand |
The enumeration represents the HTTP request command, such as "GET", "POST", "PUT", "DELETE" etc.
The enumeration has a method value(), which can return the string format. |
IHttpRequest.HttpHeader |
The enumeration represents subset of the HTTP header keys
The enumeration has a method value(), which can return the string format. |
IHttpRequest.HttpResponseStatus |
The enumeration represents subset of the HTTP request Response Status Code, such as "200", "403", "404", "500" etc.
The enumeration has a method value(), which can return the "HTTP status code" string format. The enumeration has a method text(), which can return the "HTTP status text" string format. |
IHttpRequest.Key |
The enumeration represents some of XMLHttpRequest Object Properties,
such as "status", "statusText", "responseText" etc.
|
XMLHttpRequest.AjaxReadyState |
The enumeration represents Ajax Ready State Code, such as "0", "1", "2", "3" and "4".
The enumeration has a method value(), which can return the "Ready State code" string format. The enumeration has a method text(), which can return the "Ready State text" string format. |
Copyright © SAS Institute. All Rights Reserved.