Back to product page

Getting Started in ASP


Working with the COM object and ActiveX control

Remarks

Working with the COM object

In order to insert wodHttpDLX COM object in your project, follow these steps:

1. Install the component on your system by starting its setup program.

2. Go to Inetpub/wwwroot folder and create new, or open existing ASP page

3. Add code similar to this initialize wodHttpDLXCom

     
    <%
    dim Http1
    set Http1 = Server.CreateObject("WeOnlyDo.wodHttpDLXCom.1")
     

4. Set Blocking mode which is needed in scripting environments

     
    Http1.Blocking = 1
     

5. If you have licensed version of the product, set LicenseKey property

     
    Http1.LicenseKey = "xxxx...xxxx"
     

6. Set other properties, and connect

     
    Http1.URL = "http://www.weonlydo.com"
    Http1.Get
     
    ...
     
    Response.Write(Http1.Response.Body)
    %>
     

7. If an error occurs, you should convert hexadecimal representation of the error to decimal so that you can locate error in our list. For example:

     
    Error Type:
    WeOnlyDo.wodHttpDLXCom.1 (0x800A9C3F)
    License key missing. You can not use this component in design environment.
    /http.asp, line 9
     

IIS reported error 0x800A9C3F. You should use only 9C3F, when converted to decimal it is 39999 - License Key missing error.

8. Is it possible that IUSR_COMPUTER account (IIS runs under those privileges) is unable to access windows certificate store - so trying to access any SSL server will result in a error. In such cases, we suggest you export certificates to a file, and then load them to wodHttpDLX. More information can be found on LocalCertBag page.

9. Important: If you use trial version of our product, you will always receive above error. wodHttpDLX needs to access the registry in order to validate trial license. Since IIS is running under IUSR_COMPUTER account and does not have access to the registry, you must change IIS privileges and force it to run as Administrator.

Do not do this on production server! This is potential security problem! This applies only to trial (demo) version. Licensed version does not have this restriction.

To change IIS privileges go to Start->Settings->Control Panel->Administrative Tools->Internet Services Manager. Find 'Default Web Site' here, right-click on it, select 'Properties'. Go to 'Directory Security' tab, at the top there is 'Anonymous access and authentication control' frame, and 'Edit' button. Click on 'Edit' button, and then on new 'Authentication Methods' dialog box select also 'Edit' button for 'Account used for anonymous access'.

Here you should enter Username: 'Administrator', and for Password: put administrator password. Click on 'Ok' to close all windows, and wodHttpDLX should run now

Once again: do not do this on production server, only in testing and firewalled environment.

Note: If you use Windows 2000 and you try to use SSL security, wodHttpDLX will be unable to access certificate store due to permission problems. You should either upgrade to Windows XP, or you should (as above) give your IIS administrative privileges. You can also proceed as explained in step 8 (using LocalCertBag property).


Working with the ActiveX control

You should not use ActiveX control in ASP because you will not be able to set LicenseKey. Only COM object should be used with ASP.

Platforms

Windows