Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8625461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:47:31+00:00 2026-06-12T07:47:31+00:00

I need to read the field value from a webpage using lotusscript. Essentially I

  • 0

I need to read the field value from a webpage using lotusscript. Essentially I am planning on writing an agent to go to a specific URL, get a value from the page, and then use this value for the url it sends the user to.

Can anyone give me a pointer?

A

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T07:47:33+00:00Added an answer on June 12, 2026 at 7:47 am

    Update December 2019: As of Notes 10 (released in 2018) there is a NotesHTTPRequest class that does exactly the same thing as my code.

    I do this all the time, it is not hard at all (on Windows). I created a class to do this, so it is very easy to implement.

    Here is how you call it:

    Dim internet As New RemoteHTML()
    Dim html As String
    html = internet.GetHTTP("http://www.texasswede.com/mypage.html")
    

    That’s it, now you just pull whatever information you want out of the html string.

    Here is the class:

    Option Public
    Option Declare
    
    Class RemoteHTML
        Private httpObject As Variant
        Public httpStatus As Integer
    
        Public Sub New()
            Set httpObject = CreateObject("MSXML2.ServerXMLHTTP")
        End Sub
    
        Public Function GetHTTP(httpURL As String) As String
            Dim retries As Integer
            retries = 0     
            Do
                If retries>1 Then
                    Sleep 1     ' After the two first calls, introduce a 1 second delay betwen each additional call
                End If
                retries = retries + 1   
                Call httpObject.open("GET", httpURL, False)
                Call httpObject.send()
                httpStatus = httpObject.Status
                If retries >= 10 Then
                    httpStatus = 0  ' Timeout
                End If
            Loop Until httpStatus = 200 Or httpStatus > 500 Or httpStatus = 404  Or httpStatus = 0
            If httpStatus = 200 Then
                GetHTTP = Left$(httpObject.responseText,16000)
            Else
                GetHTTP = ""
            End If
        End Function
    
    
        Public Function GetFile(httpURL As String, filename As String) As Boolean
            Dim session As New NotesSession
            Dim retries As Integer
            Dim stream As NotesStream
            Dim flag As Boolean
            Dim responsebody As variant
            Dim cnt As Long
            Dim buffer As String
            Dim tmp As Byte
    
            Set stream = session.CreateStream
            retries = 0     
            Do
                If retries>1 Then
                    Sleep 1     ' After the two first calls, introduce a 1 second delay betwen each additional call
                End If
                retries = retries + 1   
                Call httpObject.open("GET", httpURL, False)
                Call httpObject.send()
                httpStatus = httpObject.Status
                If retries >= 10 Then
                    httpStatus = 0  ' Timeout
                End If
            Loop Until httpStatus = 200 Or httpStatus > 500 Or httpStatus = 404  Or httpStatus = 0
            If httpStatus = 200 Then
                flag = stream.Open(filename, "binary")
                If flag = False Then
                    MsgBox "Failed to create " & filename & "..."
                    GetFile = False 
                    Exit function
                End If
                responsebody = httpObject.ResponseBody
                ForAll r in responsebody
                    tmp = r
                    Call Stream.Write(Chr$(CInt(tmp)))
                    cnt = cnt + 1
                End ForAll
                MsgBox cnt
                GetFile = True
            Else
                GetFile = False
            End If
    
        End Function
    
        Private Function getString(ByVal StringBin As string)
            Dim intCount As Long
            getString =""
            For intCount = 1 To LenB(StringBin)
                getString = getString & Chr( Asc(MidB(StringBin, intCount, 1)) )
            Next
        End Function
    
    End Class
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to read a value from an Oracle database and the field has
I have a database table with a field that I need to read from
I need to read in an expression from a file using a string stream
I need to read read values from below xml and am using saxparser for
I need to read 16 bits from the binary file as std::string or char
I need to read certain statistics from iw_statistics structure, here's the code: struct net_device
I need to read data from XML to a List<>. The XML file contains
I need to read the editurl from one jqgrid for use in a DND
i have a script in jquery (that grabs a value from a select field
I read a mysql timestamp can only hold a value from 19700101000000 to sometime

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.