Discussion:
WinInet Creating a Problem
(too old to reply)
CrimeMaster
2006-06-29 12:38:12 UTC
Permalink
Hi
Before this i have send a request about WINHHTP help.But coulnt find
any answer till now except one in which may be the Replier coulnt
understand the problem ,sorry for that.

Now i m using WinInet classes
CInternetSession,CHttpConnection,CHttpFile like this.
I want to send a request to a website (for example www.mysite.com) and
want to extract the html of default page or home page.
On this page their is a form in which user can place his Email and
password and then S/He can be login.

i m using the OpenURL() function of class CInternetSession to get the
HTML of the page which i m requesting.

then i want that i make a url and fill it with the user name and
password and send that url to the OpenURL() function of
CInternetSession class so that i could get the HTML of the page which
display after the user has been login successfully.

I m recieving the HTML of First page when i send the url to the OpenURL
,"www.mysite.com"
in my object of CHttpFile class. But when i make a url then i m not
getting the correct HTML of the page which display the user that u have
successfully login.But its sending the HTML of the page which display
error message that user had not entering the correct password.

I just want to do work like CRAWLING.and plz tell me how i can do this
with WinInet classes.

CrimeMaster
Scherbina Vladimir
2006-06-29 13:48:07 UTC
Permalink
CrimeMaster,

I was making exactly the same thing when writing HTTP 'mail checker' for my
MAIL.RU accout. How to solve your problem? You need to get a sniffer -
IRIS - it is really very powerful, install it, turn it on; then login to
your site, enter user credentials, press send and then analyze in IRIS what
data was sent to server.

Most likely credentials will be sent in special headers and you need to
construct exactly the same post query with the same headers using wininet.

--
Vladimir
Post by CrimeMaster
Hi
Before this i have send a request about WINHHTP help.But coulnt find
any answer till now except one in which may be the Replier coulnt
understand the problem ,sorry for that.
Now i m using WinInet classes
CInternetSession,CHttpConnection,CHttpFile like this.
I want to send a request to a website (for example www.mysite.com) and
want to extract the html of default page or home page.
On this page their is a form in which user can place his Email and
password and then S/He can be login.
i m using the OpenURL() function of class CInternetSession to get the
HTML of the page which i m requesting.
then i want that i make a url and fill it with the user name and
password and send that url to the OpenURL() function of
CInternetSession class so that i could get the HTML of the page which
display after the user has been login successfully.
I m recieving the HTML of First page when i send the url to the OpenURL
,"www.mysite.com"
in my object of CHttpFile class. But when i make a url then i m not
getting the correct HTML of the page which display the user that u have
successfully login.But its sending the HTML of the page which display
error message that user had not entering the correct password.
I just want to do work like CRAWLING.and plz tell me how i can do this
with WinInet classes.
CrimeMaster
CrimeMaster
2006-06-30 07:38:50 UTC
Permalink
Hi Vladimir
Plz couls u send me some sample code that how to send a query to the
webserver for login purpose .

thanks

CrimeMaster
Post by Scherbina Vladimir
CrimeMaster,
I was making exactly the same thing when writing HTTP 'mail checker' for my
MAIL.RU accout. How to solve your problem? You need to get a sniffer -
IRIS - it is really very powerful, install it, turn it on; then login to
your site, enter user credentials, press send and then analyze in IRIS what
data was sent to server.
Most likely credentials will be sent in special headers and you need to
construct exactly the same post query with the same headers using wininet.
--
Vladimir
Post by CrimeMaster
Hi
Before this i have send a request about WINHHTP help.But coulnt find
any answer till now except one in which may be the Replier coulnt
understand the problem ,sorry for that.
Now i m using WinInet classes
CInternetSession,CHttpConnection,CHttpFile like this.
I want to send a request to a website (for example www.mysite.com) and
want to extract the html of default page or home page.
On this page their is a form in which user can place his Email and
password and then S/He can be login.
i m using the OpenURL() function of class CInternetSession to get the
HTML of the page which i m requesting.
then i want that i make a url and fill it with the user name and
password and send that url to the OpenURL() function of
CInternetSession class so that i could get the HTML of the page which
display after the user has been login successfully.
I m recieving the HTML of First page when i send the url to the OpenURL
,"www.mysite.com"
in my object of CHttpFile class. But when i make a url then i m not
getting the correct HTML of the page which display the user that u have
successfully login.But its sending the HTML of the page which display
error message that user had not entering the correct password.
I just want to do work like CRAWLING.and plz tell me how i can do this
with WinInet classes.
CrimeMaster
Scherbina Vladimir
2006-07-02 09:39:25 UTC
Permalink
Tell me the server you want to login, I will write you the sample code
--
Vladimir
Post by CrimeMaster
Hi Vladimir
Plz couls u send me some sample code that how to send a query to the
webserver for login purpose .
thanks
CrimeMaster
Post by Scherbina Vladimir
CrimeMaster,
I was making exactly the same thing when writing HTTP 'mail checker' for my
MAIL.RU accout. How to solve your problem? You need to get a sniffer -
IRIS - it is really very powerful, install it, turn it on; then login to
your site, enter user credentials, press send and then analyze in IRIS what
data was sent to server.
Most likely credentials will be sent in special headers and you need to
construct exactly the same post query with the same headers using wininet.
--
Vladimir
Post by CrimeMaster
Hi
Before this i have send a request about WINHHTP help.But coulnt find
any answer till now except one in which may be the Replier coulnt
understand the problem ,sorry for that.
Now i m using WinInet classes
CInternetSession,CHttpConnection,CHttpFile like this.
I want to send a request to a website (for example www.mysite.com) and
want to extract the html of default page or home page.
On this page their is a form in which user can place his Email and
password and then S/He can be login.
i m using the OpenURL() function of class CInternetSession to get the
HTML of the page which i m requesting.
then i want that i make a url and fill it with the user name and
password and send that url to the OpenURL() function of
CInternetSession class so that i could get the HTML of the page which
display after the user has been login successfully.
I m recieving the HTML of First page when i send the url to the OpenURL
,"www.mysite.com"
in my object of CHttpFile class. But when i make a url then i m not
getting the correct HTML of the page which display the user that u have
successfully login.But its sending the HTML of the page which display
error message that user had not entering the correct password.
I just want to do work like CRAWLING.and plz tell me how i can do this
with WinInet classes.
CrimeMaster
CrimeMaster
2006-07-04 05:54:50 UTC
Permalink
Hi Vladimir

thanks for help.
I want to login in the site "www.myspace.com".
plz send me some sample code
thanks again .

Crime master

Loading...