Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: xml response

by $code or die (Deacon)
on Jan 25, 2001 at 01:20 UTC ( [id://54129]=note: print w/replies, xml ) Need Help??


in reply to Re: xml response
in thread xml response

I don't think this is a file upload. The vendor is going to "transmit the XML in some way" to port 443 on averylongloginname's server. Without knowing exaxtly how the vendor does this, makes it difficult to know what the answer is. i.e.:

1. Is the vendor doing a POST or GET to the URL provided?
2. Is the vendor opening a connection to port 443 and sending a stream of data (XML)

if (1), then what is the field name which will hold the XML. What other fieldnames are there that might be necessary?
if (2), will there be any headers\footers that need to be stripped off?

I suggest:
if (1) - then use the CGI module to capture the XML from the query_string or posted data and shove it in a variable to be parsed by your preferred method.
if (2) - then I'd suggest something like IO::Socket or HTTP::Daemon to "act" as a web server. I.e. listen on port 443 and wait for connections. See Listening on an HTTP port for some samples. But obviously this is made more difficult because you need to be able to deal with the SSL encoded data on your side.

averylongloginname, can you give some more specific details about how the XML is being sent? You can post it here, if you start another node then it will get confusing for everyone! =)

$code or die
Using perl at
The Spiders Web

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://54129]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-19 18:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found