curl / Mailing Lists / curl-library / Single Mail

curl-library

RE: image can't be downloaded from sharepoint server using libcurl (c++ code): HTTP/1.1 503 Service Unavailable

From: RHAIEM, Mohamed Slim via curl-library <curl-library_at_cool.haxx.se>
Date: Fri, 24 Nov 2017 13:39:48 +0000

Yes I’m sure.
I have several requests with other URLs and everything is working fine.
This is specific to sharepoint servers and I found also this link : https://sharepoint.stackexchange.com/questions/120844/automating-upload-and-download-using-script-in-linux-system


It explains that I need to add the -k option when calling : curl -k --ntlm -u username:password -O http://dest.sharepoint.com/Folder/file.txt


I read in the documentation about NTLM issues fixed before.
How could I use it without username and password?

Regards,
Slim

From: curl-library [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Amine Aouled Hamed via curl-library
Sent: vendredi 24 novembre 2017 14:28
To: libcurl development <curl-library_at_cool.haxx.se>
Cc: Amine Aouled Hamed <amine.ahd_at_gmail.com>
Subject: Re: image can't be downloaded from sharepoint server using libcurl (c++ code): HTTP/1.1 503 Service Unavailable

From the error code its straightforward to assume the error is server-side and so the client side (where curl is used) should be fine.
Are you sure you included all the needed information and the correct url in your request?

Amine.

On Fri, Nov 24, 2017 at 2:01 PM, Erik Janssen <erik.janssen_at_axis.com<mailto:erik.janssen_at_axis.com>> wrote:
I don’t think this list is the right place to find help, unless someone happens to be a fluent sharepoint user
Curl-wise everything works doesn’t it?

Erik

From: curl-library [mailto:curl-library-bounces_at_cool.haxx.se<mailto:curl-library-bounces_at_cool.haxx.se>] On Behalf Of RHAIEM, Mohamed Slim via curl-library
Sent: vrijdag 24 november 2017 12:26
To: curl-library_at_cool.haxx.se<mailto:curl-library_at_cool.haxx.se>
Cc: RHAIEM, Mohamed Slim <mohamed.slim.rhaiem_at_sap.com<mailto:mohamed.slim.rhaiem_at_sap.com>>
Subject: image can't be downloaded from sharepoint server using libcurl (c++ code): HTTP/1.1 503 Service Unavailable

Hello,

I’m using libcurl with C++ code in order to get locally some images based on their URL.
This is working with different kinds of images but not when deployed in a sharepoint server: in that case I’m receiving the following message:
< HTTP/1.1 503 Service Unavailable
< Cache-Control: no-cache
< Pragma: no-cache
< Content-Type: text/html; charset=utf-8
< Proxy-Connection: Keep-Alive
< Connection: Keep-Alive
< Content-Length: 8703


This happens with different servers each time I’m using sharepoint.

Could you please help?

Best Regards,
Slim



-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-11-24