First, thanks to the people who've helped me so far. I'm a UI designer who's suddenly found himself responsible for a very large website that integrates services from no less than four different providers, and I've been dumped into learning PHP on my own under a heavy deadline.
Anyway, I'm catching data from a form post and writing an XML document out of it. That's done, the server can process the XML correctly. But, from there, I need that file to be appended to a POST to a script on another server for processing. I've tried looking up how this is accomplished, and Richard Lynch was kind enough to point me in the direction of PostToHost, which got me off to a jump start on how to find more information. So now I'm at a point where I need help. After opening the socket, can I declare a multi-part POST and then start sending the data? Such as: fputs($fp, "Content-Type: multipart/form-data; boundary=AaB03x\n"); fputs($fp, "--AaB03x\n"); fputs($fp, "Content-Disposition: form-data; name="variable1"\n"); fputs($fp, "\n"); fputs($fp, "Variable 1 Data\n"); fputs($fp, "--AaB03x\n"); fputs($fp, "Content-Disposition: form-data; name="files"; filename="myFile.xml"\n"); fputs($fp, "Content-Type: text/plain\n"); fputs($fp, "\n"); fputs($fp, "... contents of myFile.xml ...\n"); fputs($fp, "--AaB03x--\n"); And again, I've only been doing PHP a week, so if I'm following a totally wrong track here, feel free to smack me around. As always, any help is greatly appreciated. ~Steve-o -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php