spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column50


Using JavaScript in HomeSite 4.0, Part III

Developer News
OpenOffice 3.2 Lands Amid Critical Changes
Red Hat, IBM Firmly in KVM Virtualization Camp
Red Hat Talks Up Open Source Cloud Plans

The HTTPProvider Object's Properties, Part I

The HTTPProvider object is a general purpose HTTP protocol object. Its properties and methods allow you to do many low level HTTP operations. The main Application object supports only a few HTTP-related methods such as GetURL, but the HTTPProvider object supports many low level HTTP provider properties such as Proxy, ProxyPort, Username, and Password, as well as methods such as Get(), Post(), and Head(). In the next few pages we'll describe its properties as well as its methods. Let's start with HTTPProvider object's properties.

URL Read-Write String

Sets/returns the URL location of the server with which an HTTP protocol is to be established. The following line sets the URL property:

app.HTTPProvider.URL = "http://www.microsoft.com";

Username Read-Write String

Sets/returns the username of the account with which an HTTP protocol is to be established. The following line sets the Username property:

app.HTTPProvider.Username = "docjavascript";

Password Read-Write String

Sets/returns the password of the account with which an HTTP protocol is to be established. The following line sets the Password property:

app.HTTPProvider.Password = "tipoftheday";

Proxy Read-Write String

Sets/returns the proxy server through which an HTTP protocol is to be established. The following line sets the Proxy property:

app.HTTPProvider.Proxy = "proxy.microsoft.com";

ProxyPort Read-Write String

Sets/returns the proxy server port through which an HTTP protocol is to be established. The following line sets the ProxyPort property:

app.HTTPProvider.ProxyPort = 81;

ProxyUsername Read-Write String

Sets/returns the proxy server username. The following line sets the ProxyUsername property:

app.HTTPProvider.ProxyUsername = "docjavascript";

http://www.internet.com

Produced by Yehuda Shiran and Tomer Shiran


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

webref The latest from WebReference.com Browse >
Search Engine Optimization: Selecting and Embedding Keywords · Are Google's Language Translation Web Services Ready for Prime Time? · Installing and Using Meeplace, the Business Review CMS
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
IBM DB2 10 for z/OS: Justifying the Upgrade · Living La Vida Colo: Choosing the Right Colocation Facility · FTC Concerns over Social Media Privacy Linger


Created: October 11, 1999
Revised: October 11, 1999

URL: http://www.webreference.com/js/column50/httpprop1.html