By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,939 Members | 1,540 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,939 IT Pros & Developers. It's quick & easy.

accessing parameters of a post request

P: 1
Hi,
I am looking to figure out how to display parameters of a post request. I am working in visual C++ environment. I have a program that tracks and outputs URL activity. For instance, when I log in to my yahoo email account, the program outputs the following headers:

(Request for https://login.yahoo.com/config/login?)
POST /config/login? HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Accept-Encoding: gzip, deflate
Referer: https://login.yahoo.com/config/mail?.intl=us
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded


The post request sends to the web server the username and password I enter to log in to my email account. What I want to do is to display the username and password along with the headers above. If someone has a clue on how to do this, I will appreciate your help.

I am using the BeginningTransaction function to get the headers:

STDMETHODIMP CTestSink::BeginningTransaction(
/* [in] */ LPCWSTR szURL,
/* [in] */ LPCWSTR szHeaders,
/* [in] */ DWORD dwReserved,
/* [out] */ LPWSTR *pszAdditionalHeaders)

Is there any way to get the post parameters to display with the headers?

Thanks.
Sep 9 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.