How to run the HTTP request without using CURL

busybox has wget but this limited and unsuitable for posting. You can combine busybox with netcat (or nc) for achieving the result. You only need to download netcat binaries for your platform. And here we go: POST_PATH=”/login.cgi” HOST=199.188.1.99 BODY=”Put here HTML body….” BODY_LEN=$( echo -n “${BODY}” | wc -c ) echo -ne “POST ${POST_PATH} HTTP/1.0\r\nHost: … Read more

Databricks: Download a dbfs:/FileStore File to my Local Machine?

There are a few options for downloading FileStore files to your local machine. Easier options: Install the Databricks CLI, configure it with your Databricks credentials, and use the CLI’s dbfs cp command. For example: dbfs cp dbfs:/FileStore/test.txt ./test.txt. If you want to download an entire folder of files, you can use dbfs cp -r. From … Read more

curl: Per-file Content-Type for multipart POST (YouTube API)

First, you can specify the content-type for a part you upload by adding “;type=magic/string”. Like for example in your video case: curl -F “[email protected];type=video/mpeg4” [URL] (use –trace or –trace-ascii to verify that curl sends exactly what you want it to) … but this said, I’d guess that it is highly unlikely that the receiving server … Read more

cURL not working (Error #77) for SSL connections on CentOS for non-root users

I just had a similar problem with Error#77 on CentOS7. I was missing the softlink /etc/pki/tls/certs/ca-bundle.crt that is installed with the ca-certificates RPM. ‘curl’ was attempting to open this path to get the Certificate Authorities. I discovered with: strace curl https://example.com and saw clearly that the open failed on that link. My fix was: yum … Read more

error: curl: /usr/local/lib/libcurl.so.4: no version information available (required by curl)

I also had a problem with libcurl.so.4: no version information available in installing CMAKE. I type cmake, the output is: cmake: /usr/local/lib/libcurl.so.4: no version information available (required by cmake) Segmentation fault (core dumped)` I solved this by doing the following: First, I locate the path of libcurl.so.4: locate libcurl.so.4 the result is: /home/chenjian/software/curl-7.20.0/lib/.libs/libcurl.so.4 /home/chenjian/software/curl-7.20.0/lib/.libs/libcurl.so.4.2.0 /usr/lib/x86_64-linux-gnu/libcurl.so.4 … Read more

NSS: client certificate not found (nickname not specified)?

Try prefixing the certificate filename with “./”, or using the full path. From the curl manpage: If curl is built against the NSS SSL library then this option [–cert] can tell curl the nickname of the certificate to use within the NSS database defined by the environment variable SSL_DIR (or by default /etc/pki/nssdb). If the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)