Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- POST'ing XML from VB ASP to Perl
December 2, 2004, 12:49 am
rate this thread
using the following VB code and I am having difficulty getting the XML
data. I do not see it in the normal ENV. My side is an apache server
running mod_perl. I have run tcpdump and can see the XML is making it
to my server. I have no control over the VB code. Can anyone point
me in the right direction? I have looked into HTTP::Request but I can
not seem to make it work properly.
Set objdom = CreateObject("Microsoft.XMLDOM")
objdom.async = False
destination = "http://myserver.com/cgi-bin/XMLReceive.pl "
Set http = CreateObject("MSXML2.ServerXMLHTTP")
.Open "POST", destination, False
-------END VB CODE-------
Re: POST'ing XML from VB ASP to Perl
> I have a client that is trying to post XML data to my Perl script
> using the following VB code and I am having difficulty getting the XML
> data. I do not see it in the normal ENV. My side is an apache server
> running mod_perl. I have run tcpdump and can see the XML is making it
> to my server. I have no control over the VB code. Can anyone point
> me in the right direction? I have looked into HTTP::Request but I can
> not seem to make it work properly.
I don't do VB, so I'm unclear on what this example is doing exactly.
Is it using a standard HTTP post, like a browser would do when
submitting an HTML form? If that's the case, you need to use either
CGI.pm or (since you're using mod_perl) Apache::Request. Looking in %ENV
and trying to parse what you find there is *not* the "normal" way to
parse form data. Using one of the standard modules is.
If the VB is sending something via XML-RPC, it looks like there's a CPAN
module that will help with that too: Apache::RPC::Server. I haven't used
it though, so I can't help you with it.
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
- » FAQ 2.1: What machines support Perl? Where do I get it?
- — Previous thread in » PERL Discussions