I am having trouble retrieving some info from our cloud server with
var url As New URLCOnnection
var a As String = “https://ezmeter.net/lynxstartup.php?acctno=220414030”
var reply As String = url.SendSync(“GET”, a, 10)
The program hangs as soon as the last line executes in the remote debugger with no error messages in the terminal. When I copy the a string into a browser, it returns a JSON string. If I run the program in the Windows debugger, it executes properly.
I get a reply when the last line executes in the remote debugger.
I use URLConnections in several other places. One simply gets the internet IP from https://ezmeter.net/GetMyIP.php. That one worked the first time, but not again. There is also another one that sends data to the server for storage. It hangs with both GET and POST methods on the rPi, but works with Windows.
libunwind9 and libsoup2.4 are both installed. Using Xojo 2022r1.1 as a web app that reads meters in the app and has a webpage for displaying readings to the user.
The code actually has a variable instead of the number with the space at the end. I copied the URL from my browser and somehow included a space. The space is not sent. There is also a space shown in the httpbin.org URL in my post above and that one works.