|
|
cURL Mailing List Monthly Index Single Mail
curl-library Archives
Put request with postfields libcurl c++
From: Zaid Amir <z.alamir_at_genie-soft.com>
Date: Mon, 2 Nov 2009 09:26:56 +0200
Hi
I am somewhat new to libcurl and I was recently faced with a problem that I
PUT /?versioning HTTP/1.1
Host: bucket.s3.amazonaws.com
Date: Wed, 12 Oct 2009 17:50:00 GMT
Authorization: AWS 15B4D3461F177624206A:xQE0diMbLRepdf3YB+FIEXAMPLE=
Content-Type: text/plain
Content-Length: 124
<VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Versioning>true</Versioning>
</VersioningConfiguration>
Now the first part of the request is straight forward and I don't really
And as I mentioned above, I tried reading the data directly from a string
size_t readTextCallback(void* ptr,size_t size, size_t nmemb, void* stream)
{
#ifdef _DEBUG
cout << "read_data being called" << endl;
#endif
string* strptrdst = static_cast<string*>(ptr);
strptrdst = static_cast<string*>(stream);
return nmemb*size;
}
Now for some reason, when I use a read function Curl keeps calling the
Can someone please help..
Regards
cid:image001.jpg_at_01CA35ED.DA0878B0
Zaid Al-Amir
C++ Software Developer
...........................................
Email: z.alamir_at_genie-soft.com
Web: <http://www.genie-soft.com/> www.genie-soft.com
cid:image002.jpg@01CA35ED.DA0878B0 http://www.linkedin.com/in/zaidamir
-------------------------------------------------------------------
These mail archives are generated by hypermail. |
Page updated November 16, 2009.
web site info