1

I would like to make a simple Notes HTTP Request over a Notes agent, but there is always the following message:

Class or type name not found: NOTESHTTPREQUEST

My Code:

Dim webRequest as NotesHTTPRequest
Set webRequest = NotesSession.CreateHTTPRequest()
Call webRequest.get(URL$)

Question:

What do I have to do, to import the required class for a simple GET Request over Lotus Script in a notes agent?

5
  • 1
    NotesHTTPRequest is new with Notes/Domino 10.x. Are you using Notes 10.x? Dec 11, 2019 at 15:27
  • 1
    Of course not :( why are such simple things in general, specially in Notes always so difficult and complex?! Thank you @PerHenrikLausten for the hint.
    – Baku Bakar
    Dec 11, 2019 at 15:32
  • If you're running on Windows, WinHTTP is available. Dec 12, 2019 at 19:40
  • Another alternative is to write your code in Java instead of LotusScript. Notes/Domino agents can be Java, and Java includes the HttpURLConnection and HttpsURLConnection classes that allow reading from URLs. It's also possible to make LotusScript code call Java code via LS2J, which can be useful if you already have LS code that needs changes to read URLs.
    – Scott Leis
    Jan 6, 2020 at 3:24

1 Answer 1

8

NotesHTTPRequest is new with Notes/Domino 10.x. So you need to use Notes/Domino 10.x to use it.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.