Click to See Complete Forum and Search --> : HTTP POST method


sglilsyl
November 7th, 2003, 04:02 PM
I have written a script to generate an XML document. Now I have to get this document to an external server to update their database. The instructions say that the document needs to be sent using a secure HTTPS connection. How do I make the connection? I have only transmitted data from other servers via FTP. The instructions also state that there are HTTP libraries available for all major programming languages and environments. I am in an UNIX envrironment and Oracle database. The company that owns the server have not been able to point me in the right direction. I have a feeling that this must be something very simple and am just not understanding something.

khp
November 8th, 2003, 07:16 PM
If I understand you correctly, you don't have control over the http server, that recieves the file.
If that is the case, then you need to get more information from the people that controls the http server

If they are telling you to upload via http, I would expect them to, give you a link to a page that lets you select a file on your system, and submit it to their system.

As an absolute minimum they have to give you a link to some sort of cgi script, and tell you what value to feed this script to upload a file to it.

An minimalistic upload interface might look something like this.

<html>
<form action="www.webserver.com/upload.php">
<input type="file"><br/>
<button>Submit</button>
</form>
</html>

The form action attribute points to the cgi script that recieves the file at the serverside. But without knowing the details of what values the cgi script expects, it's rather difficult to get it right.