I am trying to do a post to an iSeries. Below is the code I have, I am getting the following error in the log:
msxml3.dll: Unspecified error
Does anyone know what the problem is?
Dim s As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim objHttp As Variant
Dim response As String
Dim request As String
Set db = s.CurrentDatabase
Set doc = s.DocumentContext
Dim XMLStream as string
XMLString = "aaabbbb
Dim objXMLHTTP, objXMLDOM, objTitles, objURLs, i
Set objHttp = CreateObject(“Microsoft.XMLHTTP”)
url = |http://XX.XX.X.XX:6082|
req = |<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl"?> & XMLStream |
objHttp.open “POST”, url, False, “”, “”
objHttp.setRequestHeader “Content-type”, “application/x-www-form-urlencoded”
objHttp.send(req)
Subject: HTTP Post
req = |<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl"?> & XMLStream |
should be
req = |<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl"?>| & XMLStream
A good test is to setup an agent on a domino server you can post to that just captures the post and saves it to a document or file. Then replace the destination url with your agent and you can see what’s actually coming across.
Subject: RE: HTTP Post
Interesting. Busy with something similar
Can you explain a little more, how to…, please
I did just put it yesterday aside for now because I got stock!? at that point.
SC
Subject: RE: HTTP Post
Maybe unclear, but I ment about setting up an agent who is receiving post headers e.tc.
Hope you can help.
Thanks at forehand
SC
Subject: RE: HTTP Post
I use this:
Dim s As New NotesSession
Dim doc As NotesDocument
Set doc = s.DocumentContext
Forall i In doc.Items
Print i.Name & " = " & i.Text & “
”
End Forall
Subject: RE: HTTP Post
Still getting the dll unspecied error
Subject: RE: HTTP Post
Gary, can you try posting some where else to determine if the problem is with your code or the server you’re posting to.
Subject: HTTP Post
This looks like it might be an easy one…
You assigned a value to your “XMLString” variable but you meant to assign it to your “XMLStream” variable…