0
file_get_contents(http://smshorizon.co.in/api/sendsms.php?user=***&apikey=******&mobile=*****&message=Hello World&senderid=xxyy&type=txt)
file_get_contents()函数的问题与我的短信API intrigation
在这里,当我使用一个消息,这个空间API的短信显示“Hello World”,那么它返回HTTP/1.1 400 Bad Request
。但是,当我删除空间,而是我写HelloWorld它工作正常。
问题是什么?
您是否尝试过使用url编码? http://php.net/manual/en/function.urlencode.php –
是的我已经通过使用str_replace与“%20”的空间解决了这个问题, –