Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I may help with the second part of your question: getting your program to upload data to your server or generate a web page. You need to be familiar with HTML forms (and how they are submitted with GET and POST).</p> <h2>Upload data directly to your server</h2> <p>Use libCURL in C or urllib in Python to perform a form submission. Your C or python program can simulate the action of a guy who enters values into a form and clicks submit. You just need to see the source of your web page and devise your program accordingly.</p> <p><strong>For example</strong>: response=urllib2.urlopen('http://localhost:8983?q=well&amp;fl=id&amp;wt=python') in python is an example of a GET request. <strong>For example</strong>, When you search <em>hp laptop</em> in google, it requests for the page <em>http://www.google.co.in/#hl=en&amp;q=hp+laptop&amp;fp=1</em></p> <h2>Current web page-- and awful hack</h2> <p>That seems an <strong>awful</strong> approach, its not at all robust. But it may enter all values in your form for you. You may call a </p> <pre><code>system("browser-command url+*javascript*") </code></pre> <p>from a C program. This simulates opening a browser in command line. Chromium takes care to open the URL in a new tab. You will need to make some inline javascript code to set the values of your form.</p> <p>For inline javascript code <a href="http://www.tizag.com/javascriptT/javascriptvoid.php" rel="nofollow">http://www.tizag.com/javascriptT/javascriptvoid.php</a></p> <p>For learning Document Object Model (manipulating elements in your page): <a href="http://www.w3schools.com/js/js_ex_dom.asp" rel="nofollow">http://www.w3schools.com/js/js_ex_dom.asp</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload