Re: how to postback to a different URL than the one making the request?
Eric Wilhelm <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Message-ID | <[email protected]> |
# from vidals
# on Thursday 31 May 2007 05:49 pm:
> I'm going to receive a request that is in XML format
That sounds like a "response". A "request" is what the client sends to
the server. You can request a GET, POST, PUT, DELETE, HEAD, etc.
>The postbackurl, sample.url.com is where I need to send the data and
>I'm not sure how to do this.
Do what? Send data or parse xml? LWP::UserAgent will indeed send data,
that's what request() does.
Unfortunately, how HTTP works doesn't seem to be common knowledge
because CGI has only ever used a very, very small subset of HTTP. As
soon as you start dealing with web services, you really have to go back
to the basics and understand the forgotten verbs.
http://www.w3.org/Protocols/rfc2616/rfc2616.html
http://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm
--Eric
--
Anyone who has the power to make you believe absurdities has the power
to make you commit injustices.
--Voltaire
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------