dbTalk Databases Forums  

Opal http POST showing the resulting web page

comp.databases.paradox comp.databases.paradox


Discuss Opal http POST showing the resulting web page in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Jim Moseley
 
Posts: n/a

Default Re: Opal http POST showing the resulting web page - 04-25-2009 , 01:13 AM







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
;----------------



Reply With Quote
  #12  
Old   
Tony McGuire
 
Posts: n/a

Default Re: Opal http POST showing the resulting web page - 04-25-2009 , 02:40 PM






Jim Moseley wrote:
Quote:
Tony McGuire <png.paradoaxcommunity@com> wrote:

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've only been 'kinda' watching this thread; I do not understand in the
slightest what you are trying to do at this point, nor why.


--
---------------
Tony McGuire
http://www.homebookexchange.com


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.