dongpu1879 2014-12-11 10:34
浏览 38

使用cURL进行Nagvis身份验证

I have a problem with NagVis authentication. I have worked on 1.4.6 version and it worked. I passed on 1.7 version and impossible to have access at the map.

My php :

$url_map = "urlMap";
$ch = curl_init(urlMap."nameOfTheMap");

$password = "thePassword";
curl_setopt($ch, CURLOPT_USERPWD, $_SESSION ['nagios_username'] . ':' .$password);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);

$return = curl_exec($ch);
curl_close($ch);

I have tried to add :

curl_setopt($ch, CURLOPT_USERAGENT,  $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);

enter image description hereenter image description here

Now i arrived on authentication part, so the authentication doesn't worked and after I have error path. I want arrive directly on the map.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
    • ¥15 CSAPPattacklab
    • ¥15 一直显示正在等待HID—ISP
    • ¥15 Python turtle 画图
    • ¥15 关于大棚监测的pcb板设计
    • ¥15 stm32开发clion时遇到的编译问题
    • ¥15 lna设计 源简并电感型共源放大器
    • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
    • ¥15 Vue3地图和异步函数使用
    • ¥15 C++ yoloV5改写遇到的问题