今天用curl测试一个接口,一直提示400

最后发现是url的问题,如下处理就可以了

$url = str_replace(' ', '+', $url);

  

 posted on 2015-12-18 17:23  whlives  阅读(1021)  评论(0编辑  收藏  举报