curl

mac上利用minikube搭建kubernetes(k8s)环境

浪子不回头ぞ 提交于 2020-08-04 10:04:32
友情提示:对于初次接触k8s的同学,强烈建议先看看本文最后的参考文章。 环境: mac os(Mojave) 前提:先安装好kubectl (brew install kubectl) 、 docker desktop (建议最新版本) 步骤: 一、安装VirtualBox 下载地址: https://www.virtualbox.org/ (目前最新版本: 6.0) 一路next就好,要 注意 的是:安装过程中,可能会弹出一个系统安全相关的对话框,一定要允许,并在Security&Privacy这里,把VirtualBox勾上 否则,折腾到最后,会发现minikube虚拟机无法启动。 二、安装阿里云版的minikube 官方出品的minikube,默认连接的是google官方站点,由于众所周知的原因,天朝屁民无缘访问。所以必须用阿里版的minikube(感谢阿里) curl -Lo minikube http://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases/v1.1.1/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ 执行这一串后,就把minikube安装好了。  三、创建minikube集群

cURL NTLM Proxy Authorization

与世无争的帅哥 提交于 2020-08-04 07:52:45
问题 I have been using curl for some time now and its working fine but with a proxy which uses users 'domain\username' to authenticate curl fails asking for Authorization. Authorization method is NTLM. This code goes in a batch file. Code: curl --proxy-ntlm --proxy-user : --proxy %PROXY_URL% --user %Username%:%Password% -f -O --url "%SITE_URL%" Curl Version: curl 7.30.0 (i386-pc-win32) libcurl/7.30.0 OpenSSL/1.0.1c zlib/1.2.7 Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3

cURL NTLM Proxy Authorization

人盡茶涼 提交于 2020-08-04 07:51:09
问题 I have been using curl for some time now and its working fine but with a proxy which uses users 'domain\username' to authenticate curl fails asking for Authorization. Authorization method is NTLM. This code goes in a batch file. Code: curl --proxy-ntlm --proxy-user : --proxy %PROXY_URL% --user %Username%:%Password% -f -O --url "%SITE_URL%" Curl Version: curl 7.30.0 (i386-pc-win32) libcurl/7.30.0 OpenSSL/1.0.1c zlib/1.2.7 Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3

How do I pass cookies on a CURL redirect?

邮差的信 提交于 2020-08-02 06:07:52
问题 imagine the following scenario: I open a CURL connection and pass some XML-Logindata via POST. The server answers with an 302 redirect, where the session cookies are set and redirects me to a following "welcome"-page. If I enable FOLLOWLOCATION the cookies set on the redirection-page get lost and the welcome-page fails with a "session expired"-message. If I disable FOLLOWLOCATION, I'm not redirected (obviously) and get a HTML-page with "the page has moved to another location" with a link that

How do I pass cookies on a CURL redirect?

自闭症网瘾萝莉.ら 提交于 2020-08-02 06:06:29
问题 imagine the following scenario: I open a CURL connection and pass some XML-Logindata via POST. The server answers with an 302 redirect, where the session cookies are set and redirects me to a following "welcome"-page. If I enable FOLLOWLOCATION the cookies set on the redirection-page get lost and the welcome-page fails with a "session expired"-message. If I disable FOLLOWLOCATION, I'm not redirected (obviously) and get a HTML-page with "the page has moved to another location" with a link that

How to upgrade php cURL to version 7.36.0?

我的梦境 提交于 2020-08-01 05:06:29
问题 I have php curl 7.19.7 on my CentOS server, but I need to upgrade to 7.36.0. I tried: yum update php-curl But I got: Loaded plugins: downloadonly, fastestmirror Loading mirror speeds from cached hostfile * epel: mirror.t-home.mk Setting up Update Process No Packages marked for Update 回答1: Use the city-fan repo ( part of the curl mirror http://curl.haxx.se/download.html#LinuxRedhat) rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/city-fan.org-release-2-1.rhel6.noarch.rpm yum

How to upgrade php cURL to version 7.36.0?

只谈情不闲聊 提交于 2020-08-01 05:05:13
问题 I have php curl 7.19.7 on my CentOS server, but I need to upgrade to 7.36.0. I tried: yum update php-curl But I got: Loaded plugins: downloadonly, fastestmirror Loading mirror speeds from cached hostfile * epel: mirror.t-home.mk Setting up Update Process No Packages marked for Update 回答1: Use the city-fan repo ( part of the curl mirror http://curl.haxx.se/download.html#LinuxRedhat) rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/city-fan.org-release-2-1.rhel6.noarch.rpm yum

POST request works in Postman, but not in Python Requests (200 response with robot detection)

对着背影说爱祢 提交于 2020-08-01 04:36:00
问题 I have a POST request that works perfectly with both Postman an cURL (it returns a JSON blob of data). However, when I perform the exact same request with Python's Requests library, I get a 200 success response, but instead of my JSON blob, I get this: <html> <head> <META NAME="robots" CONTENT="noindex,nofollow"> <script src="/_Incapsula_Resource?SWJIYLWA=5074a744e2e3d891814e9a2dace20bd4,719d34d31c8e3a6e6fffd425f7e032f3"> </script> <body> </body></html> I've used HTTP request bins to verify

POST request works in Postman, but not in Python Requests (200 response with robot detection)

对着背影说爱祢 提交于 2020-08-01 04:32:21
问题 I have a POST request that works perfectly with both Postman an cURL (it returns a JSON blob of data). However, when I perform the exact same request with Python's Requests library, I get a 200 success response, but instead of my JSON blob, I get this: <html> <head> <META NAME="robots" CONTENT="noindex,nofollow"> <script src="/_Incapsula_Resource?SWJIYLWA=5074a744e2e3d891814e9a2dace20bd4,719d34d31c8e3a6e6fffd425f7e032f3"> </script> <body> </body></html> I've used HTTP request bins to verify

elasticsearch Limit of total fields [1000] in index

不打扰是莪最后的温柔 提交于 2020-07-29 11:00:36
elasticsearch中默认最大字段数1000个,实际上500左右就可能出现错误。 精简业务字段 2.手动修改elasticsearch 字段 curl -i -H "Content-Type: application/json" -X PUT -d "{\"index.mapping.total_fields.limit\":\"2100\"}" http://127.0.0.1:9200/index/_settings/ 3.将多个字段放入一个字段中 参考官方解释 https://www.elastic.co/guide/en/elasticsearch/reference/7.3/mapping.html#mapping-limit-settings Settings to prevent mappings explosion Defining too many fields in an index is a condition that can lead to a mapping explosion, which can cause out of memory errors and difficult situations to recover from. This problem may be more common than expected. As an