$cSession = curl_init();
curl_setopt($cSession,CURLOPT_URL,"http://hai:[email protected]@redmine.org/users/current.json");
curl_setopt($cSession,CURLOPT_RETURNTRANSFER,true);
$userDetail = curl_exec($cSession);
将密码中'@'后的字符作为URL。如何使用用户名或密码登录redmine api @字符
嗨@ fahad-sulaiman。看到答案?试过代码?帮助你? :) – yivi
是的,它帮助...谢谢很多 –