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.