Ray Jender Posted July 14, 2019 Share Posted July 14, 2019 Ubuntu 18.04 antmedia community version So I am experimenting with running a CGI via an AJAX process. The CGI is a perl script with code to update a mysql database. The perl scripts works fine in stand alone mode when I execute it from a console. Now I want to send a variable to the perl script. Here is what I am using in the index.html, upon entering the function startPublishing(): I use javascript to generate a random value and then I want to send it to the perl script. The perl script should update a database. var myURL = 'https://localhost:5443/WebRTCApp/WEB-INF/cgi/connDB.cgi?streamID=' + streamId ; $.post(myURL); In the browser console I am seeing this: POST https://localhost:5443/WebRTCApp/WEB-INF/cgi/connDB.cgi?streamID=asfknehadjr net::ERR_CONNECTION_REFUSED XHR failed loading: POST "https://localhost:5443/WebRTCApp/WEB-INF/cgi/connDB.cgi?streamID=asfknehadjr". The streamID value is correct. However the ERR_CONNECTION_REFUSED and XHR failed loading are the problem. Any ideas why these errors are happening? Note that the publishing function still works. I just can't view it yet, until I get this fixed. Thanks Ray Link to comment Share on other sites More sharing options...
Question
Ray Jender
Link to comment
Share on other sites
Top Posters For This Question
1
Popular Days
Jul 14
1
Top Posters For This Question
Ray Jender 1 post
Popular Days
Jul 14 2019
1 post
0 answers to this question
Recommended Posts