curl

Git Push Fails with RPC failed; curl 55 SSL_write() returned SYSCALL, errno = 10053

不问归期 提交于 2020-06-10 10:24:32
问题 Full list of info Counting objects: 1945, done. Delta compression using up to 8 threads. Compressing objects: 100% (1935/1935), done. rror: RPC failed; curl 55 SSL_write() returned SYSCALL, errno = 10053 atal: The remote end hung up unexpectedly Writing objects: 100% (1945/1945), 3.15 GiB | 1.21 MiB/s, done. Total 1945 (delta 231), reused 0 (delta 0) fatal: The remote end hung up unexpectedly Everything up-to-date As far as I can tell, there is no file larger than 150MB, using the latest Git

Why doesn't cURL work with Windows Authentication on IIS7?

99封情书 提交于 2020-06-09 08:01:49
问题 I am trying to access a service that is behind Windows Authentication. I thought I could pass the credentials the way HTTP Basic Authentication credentials are passed, but it's not working. When I do the following, I get a 401 error, and I am absolutely sure the password is correct. curl --user username:password http://example.com Why doesn't this work? 回答1: If you are using Windows Authentication, you need to use NTLM: curl --ntlm --user username:password http://example.com 回答2: You can also

Why doesn't cURL work with Windows Authentication on IIS7?

痞子三分冷 提交于 2020-06-09 08:01:26
问题 I am trying to access a service that is behind Windows Authentication. I thought I could pass the credentials the way HTTP Basic Authentication credentials are passed, but it's not working. When I do the following, I get a 401 error, and I am absolutely sure the password is correct. curl --user username:password http://example.com Why doesn't this work? 回答1: If you are using Windows Authentication, you need to use NTLM: curl --ntlm --user username:password http://example.com 回答2: You can also

parse and process HTML in PHP: fetching Wordpress-plugin-Metadata with a scraper

。_饼干妹妹 提交于 2020-06-09 05:28:29
问题 How do parse and process HTML in PHP - a simple scraper I'm currently working on a parser to make a small preview of a page from a URL given by the user in PHP. I'd like to retrieve only the title of the page and a little chunk of information (a bit of text) The project : for a list of meta-data of popular wordpress-plugins (cf. https://de.wordpress.org/plugins/browse/popular/ and gathering the first 50 URLs - that are 50 plugins which are of interest! The challenge is: i want to fetch meta

cURL error 60: SSL certificate problem: certificate has expired

落爺英雄遲暮 提交于 2020-06-05 08:30:01
问题 We running 2 application on amazon ec2 ( backend.abc.com & frontend.abc.com ). For that application we used a paid SSL Certificate. That certificate expiration date at 2021 June . But today, we got an error - cURL error 60: SSL certificate problem: certificate has expired (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) We check certificate expiration date, but their was no problem ( 2021 June ). Then we follow this thread - curl: (60) SSL certificate problem: unable to get local

curl fails to verify self signed certificate after redirection from HTTP to HTTPS

佐手、 提交于 2020-06-01 05:08:30
问题 I have a problem with self-signed SSL certificate and curl. Server is lighttpd. HTTPS works fine: $ curl https://192.168.144.1/zxc -k HELLO But with redirection from HTTP it fails: curl http://192.168.144.1:81/zxc -kvL * Trying 192.168.144.1... * TCP_NODELAY set * Connected to 192.168.144.1 (192.168.144.1) port 81 (#0) > GET /zxc HTTP/1.1 > Host: 192.168.144.1:81 > User-Agent: curl/7.54.0 > Accept: */* > < HTTP/1.1 301 Moved Permanently < Location: https://192.168.144.1:81/zxc < Content

IBM Watson Text-to-speech API keeps throwing Error: 403 Forbidden

南笙酒味 提交于 2020-06-01 04:43:29
问题 I've been using the IBM Watson Text-to-speech API for quite a while now. The service credentials that was working until last night has been throwing an {"code":403, "error": "Forbidden"} since this morning. I use the lite plan and London region I tried curl requests and it still doesn't work or given any further logs. I tried with a newly created pair of credentials, it's still throwing the same error. Any ideas? Here's the curl request sample although the error persists in my original python

How to compute HMAC on the bases of payload and secret key

こ雲淡風輕ζ 提交于 2020-05-31 04:46:59
问题 Hi i am trying to push data using curl. I have to add digest value that i need to create using HMAC and send the data as form-urlencoded. My issue is i am getting the error of signature mismatch while i try to push data. Here what i have tried so far: Stringpayload="{\"gavisitorid\":\"1117878577.1576839389\",\"mobile\":\"999999999\"}" $postdata = ""; $a = fopen('php://input' , 'r'); while (!feof($a)) { $postdata .= fread($a, 4096); } $sk='EghAfDrNv4RrGpRv00BGiC3vCP49cwVAEIzT7ob5JFiEQS5oMg==';

Curl 415 Unsupported Media Type

廉价感情. 提交于 2020-05-30 09:21:44
问题 I am trying to test my endpoint with curl and getting a 415: curl -X POST "http://localhost:5001/api/countries/import" \ --header "Content-Type: application/json" \ --header "Authorization: Bearer "$API_TOKEN \ --data @/D:/_countries.json Response: {"type":"https://tools.ietf.org/html/rfc7231#section-6.5.13","title":"Unsupported Media Type","status":415,"traceId":"0HLTFOME7T990:00000001"} And here's my .net core endpoint: // POST api/countries/import [HttpPost] [Route("[action]")] public

Why is are my published ports not working?

扶醉桌前 提交于 2020-05-30 06:33:44
问题 I've created a docker image containing a rust application that responds to get requests on port 8000. The application itself is a basic example using the rocket library (https://rocket.rs/) it looks like this #![feature(proc_macro_hygiene, decl_macro)] #[macro_use] extern crate rocket; #[get("/")] fn index() -> &'static str { "Hello, world!" } fn main() { rocket::ignite().mount("/", routes![index]).launch(); } I have compiled this and called it server I then created a Docker file to host it