Since you're opening the socket yourself, rather than using an HTTP library such as curl, you need to set the proper HTTP Protocol version and add the HTTP Host header yourself just below the POST line.$header = "POST /cgi-bin/webscr HTTP/1.1\r\n";$header .= "Host: www.sandbox.paypal.com\r\n"; 这篇关于PayPal IPN错误请求400错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-05 13:02