Search these areas:
Help
Support Forums
Product Info



Introduction
DataWeb: What's New
Creating an Application
The DataWeb Designer
Application Management
Data Tables
Data Tables
Views
Templates
Components
Data Analysis
Members
Security
Importing
Exporting
FTP
JavaScript
Object Model
JavaScript Objects
General Scripting Objects
Data Access Objects
File Access Objects
Http Client Objects
-HttpRequest Object
-HttpResponse Object
isError
isInfo
isRedirect
isSuccess
toString
-HttpUserAgent Object
Security and Membership Objects
Document Object Model (DOM)
Error Descriptions
Object Model Extensions
Full-Text Search
Domain and Email Hosting
HotBlock Modules
Account Management
Glossary
New Responsive UI Module





DataWeb Help
Support Forums
Tutorial
Script Library
Knowledge Base

Home > Support

DataWeb User's Guide

HttpResponse Object
The HttpResponse object represents the data sent back by a server in response to a HttpRequest Object. The HttpResponse object should not be confused with the Response Object, which represents the data sent by your application to the user's web browser. There is no constructor for the HttpResponse object. The only way to create a HttpResponse object is to issue a request with the HttpUserAgent object.

Instance Properties

code The HTTP response code. For a list of response codes see Hypertext Transfer Protocol.
statusLine Text returned with the code. If the server does not return custom text, standard text is returned.
request An object or string, equivalent to the req parameter of the original request() method call. If req is a string, then request will be a string. If req is an Object, then request will be an Object.
content Content of the response. For example, if an HTML page was requested then content will be an HTML file.
headers Returns the headers as an object with each property representing one header. If a header appears multiple times (the set-cookie header often does), then values of the header are concatenated separated by \n.

Instance Methods

isInfo Returns a Boolean value indicating whether the response is informational.
isSuccess  Returns a Boolean value indicating whether the response was successful.
isRedirect  Returns a Boolean value indicating whether the response was a redirect.
isError Returns a Boolean value indicating whether the response was an error. Check the code property to see which error was returned.
toString Returns the content of the response. This method returns the same data as the content property above.

Related Topics

HttpRequest Object,  HttpUserAgent Object

Affiliate | Partner | Terms of Use | Privacy Policy | Contact Us | Pricing | Bring DataWeb In-House    
Email Us