HELP! I'm a newbie with C experience, but I can't figure out what's next.
I know that I'd like to build and send a request that accomplishes a POST. Here's what symfony is sending: How do I do this in the App?
POST http: //www.XXXXXX.tld/index.php/TestDB/create Host: www.XXXXXX.tld User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: 1.9.0.13) Gecko/2009080315 Ubuntu/9.04 (jaunty) Firefox/3.0.13 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: UTF-8,* Keep-Alive: 300 Connection: keep-alive Referer: http: //www.XXXXXX.tld/index.php/TestDB/new Cookie: logintheme=cpanel; cprelogin=no; langedit=; lang=; PPA_ID=5e8a640cf394ff16762b38399c5b0092; webfx-tree-cookie-persistence=wfxt-20+wfxt-16+wfxt-10+wfxt-4+wfxt-6+wfxt-8+wfxt-22+wfxt-32+wfxt-26; symfony=2f84fb600ea82256a57d27a79bc81ab4 TestDB%5BINPUT_name%5D: JOHN DOE TestDB%5BTestDB_id%5D: TestDB%5B_csrf_token%5D: 41b5aa1826783905426e62821901044c
What's the elegant way to connect and POST to Postgres?
Do I need to get the csrf token and then POST with it? two steps?
Some sample source code would be really appreciated, I'm lost.