Re: Intercept HTTP POST
- From: "Chris" <chrisx@xxxxxxxxxx>
- Date: Wed, 9 Aug 2006 09:04:49 +0100
Thanks. I'll see if I can find some examples of HTTP over Winsock. Sounds
like it'll end up being ASP though!!!
"Anthony Jones" <Ant@xxxxxxxxxxxxxxxx> wrote in message
news:OdEWkqyuGHA.1852@xxxxxxxxxxxxxxxxxxxxxxx
"Chris" <chrisx@xxxxxxxxxx> wrote in message
news:Oo2kmWwuGHA.1504@xxxxxxxxxxxxxxxxxxxxxxx
I just wanted to investigate all possible options before I proposed a
solution.
Ok the alternative is to create something in VB that is going to listen on
a
TCP/IP port and at least support enough of the HTTP protocol to satisfy
the
transfer requirements of the the third party component. Not trivial but
not
overwhelmingly difficult either.
The real issue is what hosts this component? COM+ isn't a good choice you
need a thread waiting for input on the listening port. A service is the
correct choice but building one of those in VB6 is a little tricky. An
EXE
would do it but where would it run, on the console?
Compare with ASP. Available as standard on anything 2000 or above, easy
to
setup and only requires a simple DLL.
"Anthony Jones" <Ant@xxxxxxxxxxxxxxxx> wrote in messagelisten.
news:OJDD8UuuGHA.2224@xxxxxxxxxxxxxxxxxxxxxxx
"Chris" <chrisx@xxxxxxxxxx> wrote in message
news:eitcbPuuGHA.416@xxxxxxxxxxxxxxxxxxxxxxx
Thanks. I'll give that a try.
Is is possible to to it without ASP? For example, With the Inet,
WebBrowser, XMLHTTP or ServerXMLHTTP component.
No these are all client tools. You need a server tool designed to
VB6Why would you not use ASP?
"Anthony Jones" <Ant@xxxxxxxxxxxxxxxx> wrote in message
news:eg9cx1suGHA.4336@xxxxxxxxxxxxxxxxxxxxxxx
"Chris" <chrisx@xxxxxxxxxx> wrote in message
news:e4eDfZsuGHA.5044@xxxxxxxxxxxxxxxxxxxxxxx
We use a 3rd party component that receives data from an externaland
source
submits it as XML to an internal company URL via an HTTP POST. My
bycomponent needs to receive the XML and process it. Can this beeasily
done
in VB6? If so, what component do I use and what do I need to do.
I've used the XMLHTTP component before but that seems to be driven
some.the
Howeverclient making a request, waiting and then receiving a response.
in
my situation the 3rd party component will post data when it has
Is
Server.CreateObject("MyComponent.MyObject")there an event-driven way to receive this data?
Host your VB6 component in an ASP application. Have the 3rd part
component
post to this ASP app.
'XMLAcceptor.asp
<%
Dim objThing: Set objThing =
objThing.Process Request
%>
'MyObject
Public Sub Process(ByVal Request as Object)
Dim oDOM as MSXML2.DOMDocument3
Set oDOM = New MSXML2.DOMDocument3
oDOM.async = false
oDOM.validateonparse = false
oDOM.load Request
' Do stuff with the loaded XML
End Sub
Anthony.
.
- References:
- Intercept HTTP POST
- From: Chris
- Re: Intercept HTTP POST
- From: Anthony Jones
- Re: Intercept HTTP POST
- From: Chris
- Re: Intercept HTTP POST
- From: Anthony Jones
- Re: Intercept HTTP POST
- From: Chris
- Re: Intercept HTTP POST
- From: Anthony Jones
- Intercept HTTP POST
- Prev by Date: Re: VB programme to wait for a process to finish before moving onto the next step
- Next by Date: Re: getting a trigger from the serial port
- Previous by thread: Re: Intercept HTTP POST
- Next by thread: help needed in sending parameters to a dll function
- Index(es):
Relevant Pages
|