cplusplus.com cplusplus.com
cplusplus.com   C++ : Forums : Windows Programming : Websites from C++
  Search:
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forums
Forums
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Articles
Lounge
Jobs

-

post  Websites from C++

Eralpb
Hi I want to learn how to get the html code of a webpage through c++ without using mfc and with using winsock(obviously, isn't it?).Getting the pure html code is easy but how can I get a page which I can only see after logging in?With vb6 that was easy, there is a winsock control and you can edit the username and password variables of it, but with c++ I cant figure it out, can you help me? Thanks..
|
Zaita
You will have to construct an HTTP class that can generate the HTTP calls to send to the webserver to log you in. The you will be able to access the page and get the code.

I would do some studying up on the HTTP protocol.
|
Eralpb
before studying the http protocol; I noticed that I didnt want a normal authentication but I want a authentication like forums or hotmail.I'm trying to do a hotmail application that allows me to send receive emails and see contacts.Can this be done with http protocol?
|
Zaita
Yes.

This is simply changing the request you make.

e.g
GET / HTTP/1.0
This will get the root directory

GET /login.php?username=bob&password=bob HTTP/1.0
This appends parameters to the page request. This is how an HTTP form works.

Some reason it cuts the end off. It's HTTP/1.0
| Last edited on

Registered users can reply in this forum.
Home page | Privacy policy
© cplusplus.com, 2000-2008 - All rights reserved - v2.2
Spotted an error? contact us