rest api - Wordpress HTTP API NTLM Authentication

I was wondering if anyone has had to use NTLM authentication when using wp_remote_get? Trying to authenticate using Basi

I was wondering if anyone has had to use NTLM authentication when using wp_remote_get? Trying to authenticate using Basic but that is returning the proxy error. When I use other authenticators for different APIs that do use the Basic method, it works flawlessly!

Anyone got a solution for these?

I was wondering if anyone has had to use NTLM authentication when using wp_remote_get? Trying to authenticate using Basic but that is returning the proxy error. When I use other authenticators for different APIs that do use the Basic method, it works flawlessly!

Anyone got a solution for these?

Share Improve this question asked Oct 15, 2019 at 5:58 markbmarkb 2996 silver badges18 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

In case anyone has issues like I did, I found this discussion where I added the code and instantly was authenticated. Not sure if its a Wordpress issue or a PHP one, but I feel that the ANY portion of the Wordpress authentication was getting blocked first to find the Proxy type, but timing out. Adding the code from this link worked: https://core.trac.wordpress/ticket/31232#comment:7

add_action( 'http_api_curl', function( $handle ) {
    curl_setopt( $handle, CURLOPT_PROXYAUTH, CURLAUTH_BASIC );
});

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745074560a4609755.html

相关推荐

  • rest api - Wordpress HTTP API NTLM Authentication

    I was wondering if anyone has had to use NTLM authentication when using wp_remote_get? Trying to authenticate using Basi

    14小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信