|
Posted by Petr Vileta on 08/19/06 22:53
> Hello all,
>
> I'm working on a professional invoice webapplication. I'm working on
> means to automate the invoice generation. Therefor I created a class
> which creates invoices using given XML-data. This is what the server
> can do...
>
> Now I'm looking for solutions to allow clients with external servers
> (like websites) to send XML data to the API. Here I'm stuck...
>
[...]
> - HTTP request : Is there a way to upload a file with an HTTP request
> programmatically ?
>
You can create and <form> with hidden input. Into this hidden input you can
put base64 encoded xml file and submit form. This you can do in PHP on
external server and this php script can work under cron or some like cron.
External user download some your script, setup it on his server and are
ready to sending xml to you.
Or you can build some application for users, eg. in Perl/Tk. This is
multiplatform (Windows, Linux) and you can comunicate with your app in any
protocol you want. If you don't know Perl/Tk, you can try my Graphical Ping
app here
http://www.stahuj.cz/internet_a_site/monitoring_site/grping/download/?g[oz]=1.2&g[up]=
or here
http://www.studna.cz/go/download/fid/4757?PHPSESSID=5967d99c3d08f3e24c20c914dd630d10
Don't dread that pages are in Czech language. My app have English too :-)
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
[Back to original message]
|