Discussion:
How to use POST Method ?
(too old to reply)
mehmet
2006-04-02 12:00:02 UTC
Permalink
Hi Everybody,
I can send a file to IIS using wininet functions using win32 api;
InternetConnect, HttpOpenRequest,HttpSendRequest using 'PUT' .

I have a "SAMPLE.HTM" file on the IIS uses 'POST' method which invokes
"sample.exe" cgi application that process this form that comes from the
browser.
How can I use winninet functions (with win32 api) that send the "SAMPLE.HTM"
to IIS insted of browser so that "sample.exe" will proceses it ?
Can someone provide me sample code block for this case ?
Any help apprecited.
Regards.
Mehmet
Scherbina Vladimir
2006-04-03 09:51:18 UTC
Permalink
http://www.codeproject.com/internet/simplehttpclient.asp - this information
should be enough to construct post qyury using wininet api
--
Vladimir
http://spaces.msn.com/vladimir-scherbina/
Post by mehmet
Hi Everybody,
I can send a file to IIS using wininet functions using win32 api;
InternetConnect, HttpOpenRequest,HttpSendRequest using 'PUT' .
I have a "SAMPLE.HTM" file on the IIS uses 'POST' method which invokes
"sample.exe" cgi application that process this form that comes from the
browser.
How can I use winninet functions (with win32 api) that send the "SAMPLE.HTM"
to IIS insted of browser so that "sample.exe" will proceses it ?
Can someone provide me sample code block for this case ?
Any help apprecited.
Regards.
Mehmet
mehmet
2006-04-03 13:34:02 UTC
Permalink
Thanks Vladimir,
But he is not using win32 api directly.
Mehmet
Post by Scherbina Vladimir
http://www.codeproject.com/internet/simplehttpclient.asp - this information
should be enough to construct post qyury using wininet api
--
Vladimir
http://spaces.msn.com/vladimir-scherbina/
Post by mehmet
Hi Everybody,
I can send a file to IIS using wininet functions using win32 api;
InternetConnect, HttpOpenRequest,HttpSendRequest using 'PUT' .
I have a "SAMPLE.HTM" file on the IIS uses 'POST' method which invokes
"sample.exe" cgi application that process this form that comes from the
browser.
How can I use winninet functions (with win32 api) that send the "SAMPLE.HTM"
to IIS insted of browser so that "sample.exe" will proceses it ?
Can someone provide me sample code block for this case ?
Any help apprecited.
Regards.
Mehmet
Scherbina Vladimir
2006-04-03 14:50:52 UTC
Permalink
it uses wrappers over wininet, but the general scheme should be clear
--
Vladimir
http://spaces.msn.com/vladimir-scherbina/
Post by mehmet
Thanks Vladimir,
But he is not using win32 api directly.
Mehmet
Post by Scherbina Vladimir
http://www.codeproject.com/internet/simplehttpclient.asp - this information
should be enough to construct post qyury using wininet api
--
Vladimir
http://spaces.msn.com/vladimir-scherbina/
Post by mehmet
Hi Everybody,
I can send a file to IIS using wininet functions using win32 api;
InternetConnect, HttpOpenRequest,HttpSendRequest using 'PUT' .
I have a "SAMPLE.HTM" file on the IIS uses 'POST' method which invokes
"sample.exe" cgi application that process this form that comes from the
browser.
How can I use winninet functions (with win32 api) that send the "SAMPLE.HTM"
to IIS insted of browser so that "sample.exe" will proceses it ?
Can someone provide me sample code block for this case ?
Any help apprecited.
Regards.
Mehmet
Loading...