i need to send the xml data to http://developer.uidai.gov.in/auth/demoapp/9/9

server but i got

510 as the error code can any one help me what is the problem

i am using curl Api


cpp function call has made like follows

int main()
{
HTTPClient* object=new HTTPClient();
object->SetUrl("http://developer.uidai.gov.in/auth/demoapp/9/9");
o->GetUrl();
o->AddEncodedPostField("input","test1.txt" );
o->Perform();
return 0;
}

code for xml file data

<?xml version="1.0" ?>
<Auth uid="uyytt" tid="public" ac="fhg" ver="1" txn="hgf">
    <Skey>Encrypted and Encoded session Key</Skey>
    <Uses pi="n" pa="n" bio="y" bt="FMR" pin="y" otp="n" />
    <Data>eB1D1stORuK++MoXOvppCgWwZ5E4J57mEA7iLeS8UolP3JKJHrG/hZstUd/9kOTr3WtLesXWcQjS7UO7HRGZpHiCO1Ntw67Nh3yMR4vQ3nIJosswVql2YhePOu3hfIv37HW6ydZhDr/BzUdPdECDl1ocaAWxR0Oe/YoxVTX4kxGkdcPM+W4gC/iDaXuiodByS9qJfCMptm/umJZxPloxhnX1efv5m/OsWElU/GqSO5rkxWU0/vDPcWiF3mXXsaID2H+SjRRxkkaXtqextgsnxWcr4AHxtAYoI4jZ2vZYyRhBC8b2cCFtJoY7HppA6iVhZH8GT7f7nSzBa5VWE7FCKgGlDEXEvJl6PxlX+j+KIvhYUAj2YYgNZXqIUOKcZM6TDF5d/bbp0MFQYoN8SXsL8MzkgNTpiQN9E4uuPsI4kbyU89GrbLdeEAZ4hINsB2pJt8jB53URMzbkjgm+EOgWH8ELj3rN/dYKKd7K7lRtWPBsLxdhx8yvaluvphQNqPjfbyMd0mkTOFILbIZALuxM78mYy1uzdA6rIF8OWq0IVMfnp2o+0a/Rv2gODXuiS6DFua1dsyFCGcvtHeEI4Vv6v1a191CyqgbtkhuBm1JkNgDuU1/DdwC3WrdDK+r5VR+0wVCKvsIJ6Qizmo4uqG2Cb9jEWIYZKZwiK4jbLWtLfLlH27bzha+V3tKP/ybPluZg8f7pxgu1BU/o2QCJKuF5uutX9yHitMimLIm28OpWTfGNbsba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/wDUkcHbrdzNfjWZA8dqhVwm10k+K1jQ936J5Ksb9NqoNh2EMbEQ55GxVImEodiFtaOUWVD9BIWmc56gRhkYqHBBJ7DGEB5TClzs5OiwUdsoqJIIV/Y6EyDT9r66GSz8Z9WwtQy7/tx7cwGwTW/wIjRuoRU</Data>
</Auth>

thanks in advance and this is my first thread

int main()
{
HTTPClient* object=new HTTPClient();
object->SetUrl("http://developer.uidai.gov.in/auth/demoapp/9/9");
o->GetUrl();
o->AddEncodedPostField("input","test1.txt" );
o->Perform();
return 0;
}

Where did "o" come from in Lines 5-7? Shouldn't it be "object"?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.