Dear all,

I would like to know how to post data to a CGI script from a windows application. I've searched for answers days but couldn't find a right answer.

If you go to the following webpage, it allows chemical structure searches. http://pubchem.ncbi.nlm.nih.gov/search/

For example, if you enter C1=CC=CC=C1 to the 'Search SMILES and Formula' text box and click the 'Search' button,
it will send data to
http://pubchem.ncbi.nlm.nih.gov/search/PreQSrv.cgi

I would like to implement this function directly onto my program.

Would anyone please let me know
1. how to post data to a CGI script?
2. get the result back?

Your kind help would greatly help me.
Thank you so much in advance,

Best,
Mike