Re: Intercept HTTP POST

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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 message
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
listen.
Why 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 external
source
and
submits it as XML to an internal company URL via an HTTP POST. My
VB6
component needs to receive the XML and process it. Can this be
done
easily
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
by
the
client making a request, waiting and then receiving a response.
However
in
my situation the 3rd party component will post data when it has
some.
Is
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 =
Server.CreateObject("MyComponent.MyObject")
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.












.



Relevant Pages

  • Re: Client HTTP Status 12031. Server IIS Log 400 w/ Win32 status 121
    ... My suspicion is that the client is sending a request to the ASP page which ... is malformed with regards to its entity body length -- causing the ASP page ... Am doing a synchronous HTTP post in a COM component that resides on a Cold ... where the Client gets a HTTP status ...
    (microsoft.public.inetserver.iis)
  • Re: ASP web hackers
    ... URL/querystring, POST, cookie or certain HTTP headers, etc. Server-side ... expecting and don't use Collection shortcuts such as Requestbut ... authentication, authenticate on every page request not just the first. ... Front/middle tier ASP developer with WAI & web standards ...
    (microsoft.public.inetserver.asp.general)
  • Re: HTTP 500 Internal Server Error while running ASP page
    ... you need to turn off the "Show friendly HTTP error ... > I made a guest book with ASP page and MS access 2000. ... > can display data from the database via my asp page. ... > HTTP 500 Internal Server Error ...
    (microsoft.public.frontpage.programming)
  • Re: XML mit ASP auslesen und formatieren
    ... > und Daten mit ASP in eine bestimmte Form bringe? ... Stelle sicher, das MSXML 3 oder 4 auf deinem Server installiert ist, auf ... HTTP Anforderung an den anderen Server zu senden: ... For Each HeadLine in HeadLines ...
    (microsoft.public.de.inetserver.iis.asp)
  • Re: include asp in php
    ... to insert image, you dont use includeuse html even for asp generated image, dont forget the concept of http. ...
    (comp.lang.php)