473,473 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

C++ with Libcurl to Microsoft Azure

1 New Member
Hi,

I use libcurl library (v7.45.0) statically with my C++ application. Using curl APIs, we want to upload & download files to/from the Microsoft Azure Storage Blob service using https. I have no problem to get container list. But I can't upload a single file by using Put Block operation.

This it the PUT method: (blockId=1)

"PUT\n\n\n262144\n\n\n\n\n\n\n\n\nx-ms-date:Sat, 05 Nov 2016 00:35:38 GMT\nx-ms-version:2014-02-14\n/devazurestorage2016/blobcontainer1/azurerepository/950083514/000/002/2176\nblockid:MTAwMA==\ncomp:block"

I got http 400 error.

<?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidHeaderValue</Code><Message>The value for one of the HTTP headers is not in the correct format.
RequestId:398559da-0001-007b-04fc-3694ba000000
Time:2016-11-05T00:36:45.0971626Z</Message><HeaderName>Content-Length</HeaderName><HeaderValue>-1</HeaderValue></Error>

Any idea to solve this issue.

Regards,
Jonathan
Nov 5 '16 #1
0 3208

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Michael T. Peterson | last post by:
Hi, What are the differences, if any, between these two libraries? The curl website doesn't mention php_curl.dll and php websites often use libcurl and php_curl interchangeably. Thanks, ...
0
by: loris128 | last post by:
A port of the famous libCURL for the .net platform http://sourceforge.net/projects/libcurl-net/ Has anyone used this? Is it good? >From a search in the newsgroops it seems like noone has...
0
by: Yandos | last post by:
Hello all, I'm sorry for a bit off-topic post, but curl does not have own newsgroup, so I hope someone might help me here... I need to feed form like the following using libcurl: <form...
3
by: MLH | last post by:
Generally, I do not monkey with renaming controls on forms whose name, by default, matches the name of their related table fields. But I noticed the following today If IsNull(Me!VColor) Then...
1
by: Sylvain/11XX | last post by:
Dear all, In order to retrieve and parse a XML document over internet (through http) I use libcurl and expat in my C program. For some long item I have 2 callback, that's ok for the moment....
2
by: borucik | last post by:
I am trying to use libcurl with Visual C++ 2005 Express Edition. I downloaded the file from here: http://curl.haxx.se/dlwiz/?type=lib&os=Win32&flav=-&ver=2000%2FXP It is the 7.16.0 version of the...
3
by: Jake | last post by:
Hi, I am trying to make an application in C which must establish a telnet session with a remote server, execute some scripts on the remote server and close down the telnet session. I have...
2
by: srinivembu | last post by:
Hi, I have linked libcurl library (v7.19.6) statically with my C++ application. Using curl, we upload & download files to/from the window azure storage webservice using https. The download works...
4
by: sdcoates | last post by:
I created and uploaded data to an Azure SQL database. But, when I go into the Access database and try to connect to this SQL database, I get the following message: "You cannot use ODBC to import...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.