Click here to Skip to main content
14,775,260 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi..

I am using libcurl for my http request. I am stuck with the http post method. If suppose this is my post request :

<wfs:GetFeature service="WFS" version="1.1.0"   xmlns:topp="http://www.openplans.org/topp"
  xmlns:wfs="http://www.opengis.net/wfs"
  xmlns:ogc="http://www.opengis.net/ogc"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.opengis.net/wfs
                      http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">
  <wfs:Query typeName="topp:states">
    </wfs:Query>
</wfs:GetFeature>


How can I send this request to hit the browser in my c++ code using libcurl.

Any help is appreciated.

Thank You
Posted
Comments
Dark Darkling 25-Sep-13 6:38am
   
I guess you could use this example:
http://curl.haxx.se/libcurl/c/http-post.html

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900