How to log in using c++ ?

Guys, I need to learn how to log in to my microsoft account or maybe facebook acount through cpp. First of all I already know how to open a file but I'm not sure if this is the right one, for example:
system("cow.html");
or maybe you recommend another way? Please tell me.
Second, please tell me how to write my email then password into the bars through c++ .
It doesn't matter if I have to input my data through the console or directly in the code. I just need to work. facebook.com or outlook.com , it doesn't matter, please give me an example, show me the logic...
There is no standard way to do it in c++ without networking or external libraries. You may want to take a look at the network handling libcurl, i believe they have a web request system that works well. Also, some websites also have SDK systems that allow you to interface with there systems, as google does. Also, you are working with the system command that is no different than using the command prompt and putting in "cow.html". If you really want to make a true web request use libcurl or other systems alike to it.
I think each OS has a way to connect to the internet.
If you use Windows you can use the WinInet functions, however it won't be easy.
https://msdn.microsoft.com/en-us/library/windows/desktop/aa385473%28v=vs.85%29.aspx
http://www.codeproject.com/Articles/3849/Simple-HTTP-Client-using-WININET

A bit easier to use is MFC
https://msdn.microsoft.com/en-us/library/6f7sbkyc.aspx



lordseanington (77) , you said that some websites allow me to interface with their systems.
Do you know if facebook allows that?
This might be what you look for.
https://developers.facebook.com/docs/apis-and-sdks
Sorry but I cannot understand any of this :(
I was hoping of giving me a code as an example but still thanks for your efforts ;)
What do you actually want to accomplish? Logging in to a website is not difficult but I guess that's only the beginning. Have a look at this thread where I wrote a little app that automatically can login here.

http://www.cplusplus.com/forum/windows/184185/
I want to only know how to log in to a site, to facebook in particular.
Well actually I also wanna know how to log out after that. It doesn't matter if I put the email and the password in the code or through the console.
I thought this is going to be easy but...anyway. I saw that you said to him that you're going to PM him another code. Can you also send it to me too, maybe that would be helpful?
Or if you have free time, I would really appreciate it if you could send me a CODE of what I have really asked for.
Either way thanks a lot for trying to help me ;)
Sure I could write a little app for you. However I need some information, so you need to enable PM in your account here.
I've enabled it but why can't you just post it here?
I could but it seems this thread doesn't interest many people.
@Thomas it's always better to have solutions posted publicly to the thread. That way, it can act as a resource for anyone else who comes along looking for a similar solution.
@MikeyBoy,

I will post the code when it is finished. It's much easier if I can send him a link on my dropbox account and he can download and run the whole project. The best solution would be if we could upload zip files here but I am not sure if this ever will happen.
Topic archived. No new replies allowed.