Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Bad Request Your browser sent a request that this server could not understand. Additionally, a 400 Bad Request error was encou [closed]

$
0
0

I am facing problem during calling a API using Private VPN connection.I havehost address: 10.233.137.5 aliveapi.issURL:localhost://aliveapi.iss/api/connectand Username and password provided by API owner

Please advice me how do i access the URL using libcurl phpI have done followingcurl_setopt($curl, CURLOPT_URL, "http://localhost:80//aliveapi.iss/api/connect");curl_setopt($curl, CURLOPT_HTTPHEADER, array('Host: 10.233.137.5 aliveapi.iss','Content-Type: application/json',"Authorization: Basic ".base64_encode($UserId":".$Password)));Please consider my poor English and suggest.

Thank you.


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>