How can I "do stuff" on a webpage through C++(or suggest another language) [closed] - c++

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
What I exactly want to do is this:
I want my program to take this link
http://answers.yahoo.com/dir/index;_ylt=Aj_zP9qxkgoIzbqd5GR_zkH05nNG;_ylv=3?sid=396546041
and retrieve a list of all the questions in a page or any selected page. That part is easy through simply going through the page, but I want to be able to "do" things such as typing an answer in the console or window and post it in the question in that forum. Or be able to upvote/downvote and do most of the operations that require a button click. Save questions for later view and other things like that.
My approach for retrieving info is using C++ to parse the info from the page by going through it line by line. But I have absolutely no clue how to send information such as button pressing and other stuff. I even don't know how to search for it because I'm not sure what it's called.

Use sockets api (windows sockets or posix on linux);
Connect on 80 (or any http) port to your server;
Send a http-header and get/post parameters (should be urlencoded);
Receive response.
Keywords: http-protocol, berkeley sockets, c++, good luck!

Related

How does data get stored in online exams or tests in real time when the connection's OFFLINE? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'd like to know how or where data gets stored in an online TIMED exam or test when the network connection becomes offline! I've seen scenarios where the network connection suddenly drops down and when the user logs into his account again, finds that the he can resume his test from the point the connection went offline! So, where does the data of his answers to his previous questions actually get stored? Is it in the client or server side? Do the test providers use any offline storage for these?
I was just curious about this (and kinda new to this) and couldn't find any accurate explanations for this in any search engine. A li'l guidance would be much helpful! [This could really be some kinda basic question I'm sorry for my ignorance- but I really don't know]
Without knowing the particular exam/system in question, the answer will be a bit generalized. Here goes:
The client side (code running in the browser most likely) must be saving the answers directly to the server as they come in.
The client side can also be linked to the server where the test results are stored. This can be done via a live link such as websockets. Once the server detects that the client is 'down' (for whatever reason) the server may or may not stop the timing of the test. It all depends on the specifics of the particular test. Care to share which?

How to execute code written in an editor embedded within a browser [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Hi Guys I was writing a web application which requires me to compile and execute code from within a browser. I am a little clueless about it though I read the following links to see how I can go about it.
http://www.quora.com/Interviewstreet/How-can-I-build-a-compiler-like-the-one-on-InterviewStreet-from-scratch
http://norvig.com/lispy.html
developer.hackerearth.com
I am planning to write it for several languages namely C/C++/java/python/Ruby
Any pointers would be helpful
You can just take the code and send it to server server will compile and execute the code and send back to the browser.
If you don't have much time.
If you have much time then you can build your own compiler like one you want and integrate it with you'r web application. like w3school and ideone.
or pass it to local host compiler it will execute and return the result to the browser.

Web Development on different browsers [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am new to development of websites
I have query why does a website work on some browsers while not for others
I have designed a website which works on one browser IE and then it does not for other computers IE
it does not goes through hit .
What precautions should I TAKE SO THAT MY WEBSITE WORKS ON EVERY BROWSER
The warning which I got was as below
The code on this page disabled back and forward caching. For more information, see: go.microsoft.com/fwlink/?LinkID=291337
but I did not understood Kindly explain and give some tips
Ok I think I got something wrong with my code or internet speed
I kept the code in Developers option and let it wait then the hit went through all the 4 states and I got a response
Am I missing something ... In normal mode the hit does not go through all the states
Set your mode as synchronous to true

Window - Lock Program Background [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to lock a program in background by adding a service to background. The user needs to input password to use the program.
sc create newservice binpath = "C:\Users\User\Test.exe"
The problem is, I am not sure that How can I write the program.
First, what programming language can I use? Cmd, C++ or others?
Second, how can I write this exe?
I have heard this from my friend, but I am not sure how to write this.
Any help will be appreciated.
First note, background process not must be service.
Second note, if you wish wrote service, take in account Vista and above session isolation. Also service may run in another account.
Third note. How do you 'trap' browser? Code injection? Finding by process name/ window name? .... Many counterattacks exists, so this is not trivial thing.
Forth note, What if stop service or close/kill your process?
Fifth note, how do you wish store passwords? If as plain text, every skilled person obstruct your app. If encrypted, more code you must wrote...
Sixth note, nobody on SO.com wrote code for wish without you.

Remote program control using winapi [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
How I can remotely control a GUI program using winapi?
I need to open skype or icq and click on the right contact and then read the last message. There's a program in VS spy++, but if you want to trace window messages, you need to remotely control spy++. So the problem is how can you remotely control a program and the other thing, where can you find application codes.
The White framework hides a lot of the details of UI automation, and you may find it easier to use than raw UI Automation.