Tony McGuire <png.paradoxcommunity@com> wrote:
Quote:
I do both; websrv and simple web browser for generic client usage. |
Do you invoke a POST and display the resultant webpage? I'm pretty stuck
here.
I tried earlier today to use MSXML to do a POST of my regular html page,
and got a nasty error ('405 Method not allowed') on the POST. I can GET
the page fine with the same code (shown below), but can't POST. I can use
IE directly and GET & POST at will, but the MSXML logic won't POST.
I'm pretty sure if I get this resolved, I'll run into issues of running 'local'
javascript (with warnings/errors), so I doubt this is my solution.
What I really need is a way to POST directly to either an Internet Explorer
page, or your MS Browser COM object form.
Thanks,
Jim Moseley
;------------------
method run(var eventInfo Event)
var
oaXMLHTTP oleAuto
endvar
if not oaXMLHTTP.open("Msxml2.XMLHTTP.3.0") then
errorShow("oaXMLHTTP.open - msxml2")
endif
soapURL = "http://mysite.com/maps/showMap.html"
envHead = "address1=jax"
try oaXMLHTTP^open("POST",soapURL, false);
onfail errorShow("on http^open - post") endtry
headersType = "application/x-www-form-urlencoded; charset=UTF-8"
try oaXMLHTTP^setRequestHeader("Content-Type", headersType)
onfail errorShow("set content-type") endtry
try oaXMLHTTP^send(envHead) ; sync so it'll wait
onfail errorShow("on http^send") endtry
resultXMLstr = oaXMLHTTP^responseText
msgInfo("result",resultXMLstr)
resultXMLstr.view()
endMethod
;----------------