How to use Chttp with post method

I want to use the HTTP POST method with the mfc CHttp class.I m using HTTP_VERB_POST in opwnrequest . All things are going in proper way. But I don't undeerstand how should I send the parameters to cgi script.
I tried it with szHeader with AddRequestHeaders and SendRequest
But it didn't work
I need the correct format that I should send  !!!!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

HOWTO: Simulate a Form POST Request Using WinInet

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The correct format, and the list of headers you need, is going to be dependent on exactly what's running on the server to answer the request.

You should use a network sniffer, or WININET's trace mode, to see what IE sends when you interact with the target page manually. Then, you have a perfect idea of what you need to send in your programmatic POST request.

..B ekiM
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.