The best way to see the content of a valid http POST request is to look at the content of a request from a working program, like your browser.
Install an http tracer or debugger, which will log all http communications going out of your machine. Then, go to a site that has html for a form on it, click the button on site, and then look at the output from the tracer utility.
As a test, I quickly downloaded and installed HttpTracer, and set my browser (which is IE) to use it as a proxy (I set the proxy to 127.0.0.1 on port 8010, as explained in the Help file). On this page (i.e., the CodeGuru formu) the html includes a form with a "submit reply" and a "preview post" button. When I press the "preview post" button, HttpTracer logs the request as follows:
ok. A few more questions.
What exactly would my "File type" be? .txt? And do I have to read in the whole file in a huge string to put into "File contents"?
Thanks.
P.S. I tried the httptracer and since I'm going directly to a router, not a regular web page, the new settings for IE that I had to put in, made my browser not connect to the router anymore. Thanks for that suggestion though. Made a lot of sense.
I don't know what the file type would be. What does the file look like?
If you want, you can post the file and the form it's submitted with. (If the form is any different at all from what you've already posted). I can use it to post against an inspection page here, which would reveal the file type and the exact posted contents, at least.
Henri Hein
Principal Engineer, Propel
Do not credit Propel with my views or opinions.
Hey, I'm working on a Upload tool So far i has been a succes thanks to this Thread. I've recently mad a GET request which work out great. But now i want to make a POST request. I know what kind of dat is being sent to the server. I only don't know how to fit all that data into 1 string. Here is the data that i want to Post:
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.