Ok, I learn best by example and so far I’m having difficulty finding an example I can follow.
I have, in the past, used an Web agent to POST information. It just spits out HTML as a POST form. This works, but of course, it doesn’t wait around for a response so unless the output is small, it never completes sending the information since it doesn’t wait around for a reply from the other server.
I need an example of how to properly POST information. I have some data that is in excess of 1MB and I need to POST it to the other server. How do I do this? How do I make my server wait around until the entire contents are posted successfully?
I’ve seen the example on nsftools called “URL Fetcher” but I can’t seem to determine what code is for POST. Or course, not having any real background on how it all works confuses me even more. But I’m willing to work at it. I just need a little push in the right direction.
Any thoughts, help, examples? It is much appreciated.
Tim Williams