I’m currently working on a Java project where I need to send an HTTP GET request to a Yealink IP phone.Working on a T57W IP Phone. I’m using the curl command to send the request, but I’m encountering some issues.
Here’s the curl command I’m using:
curl "http://<myphoneip>/servlet?key=OK."
tried other commands aswell like Volumeup im always getting this :
curl: The remote server returned an error: (401) Unauthorized.
At line:1 char:1
- curl “http:///servlet?key=VOLUME_UP.”
-
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc eption + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
following the yealink doc ive set everything up in the phones backend
-ip is trusted
-CSTA is enabled
-firewall rules are set
tried : curl “http:///servlet?key=OK.”
expected smt like : StatusCode : 200
after recieving the first get request a pop up should appear on the phone to enable remote acces.
Might need some kind of authentication like username or password or my uri format is just wrong.
Thanks in advance guys !
SmiSmiSmi42 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.