Solved

HTTP Post

Posted on 2000-02-15
3
154 Views
Last Modified: 2010-04-09
I want to use an HTTP post command to send an xml document to a cetain address, anyone have a clue how to do it?
0
Comment
Question by:rrivers
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 28

Expert Comment

by:sybe
ID: 2524849
You need to use some server side scripting (asp, perl) to do that. Post the form to that script, and handle it from there, that is, if you need to send the document as an attachment or with a certain mime-type.

With plain HTML you can only send plain text messages without attachment.




0
 

Author Comment

by:rrivers
ID: 2527505
Yes, I'm sorry I didn't make it clear that I understood that. But what I am asking is using a PERL script, how do I post to another server? I guess this is more a PERL question.
0
 

Accepted Solution

by:
tom_beale earned 100 total points
ID: 2549647
One way to do it is to have the PERL script generate a page with the necessary form and a field with the text as its value. At the end of the  script add the following line:

print "<SCRIPT Language='JavaScript'>document.forms[0].submit()</SCRIPT>";

This will trigger the submit on the
form and POST to the other server.


Another way to do it is to add the LWP module to PERL. The LWP module adds some objects to PERL that allow it to do GET/POST operations (directly from DOS or a terminal, yet) and capture the results in a variable.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question