Skip to main content
Participating Frequently
January 19, 2015
Question

Making a call over HTTPS with LoadVars, XML.load(), and WebService - Yes or No?

  • January 19, 2015
  • 2 replies
  • 896 views

Hello, do LoadVars, XML.load(), or WebService support HTTPS-based endpoints, Yes or No?

BACKGROUND

============

I've been trying to get a LoadVars to actually make a call to an HTTPS endpoint. There is nothing in the documentation that says it can't. I know that there's also XML.load() and WebService class, but from the looks of it they don't do HTTPS.

During my tests I have absolutely no issues with making calls to the same service over HTTP. When I change it to HTTPS I don't see HTTPStatus or even failures. Also, netstat on my server will show a connection being established with the endpoint when using HTTP but not when using HTTPS. I've also tried setting SSLVerifyCertificate to "false" in my Server.xml and after a restart of AMS it doesn't help, same symptom.

I've also googled and looked through all Adobe forum posts that I can find:

The best I found from the posts above is a non-commital answer from adobe staff at https://forums.adobe.com/message/4938426#4938426 and a 3rd party person saying that Webservice doesn't work at http://stackoverflow.com/questions/5619776/webservice-and-fms.

All I need is an official supported/not-supported from the Adobe staff. Shouldn't be to hard after 5 years or so of ignoring the questions in the forum right?

This topic has been closed for replies.

2 replies

usama_ahmed_viasto
Participating Frequently
January 13, 2016

Hello,

I achieved calling over https by using ProxyPass and ProxyPassReverse inside the apache configuration file.

Go inside ams/Apache2.2/conf folder and edit httpd.conf

After these lines

ProxyRequests Off

ProxyPass /open/ http://localhost:1935/open/

ProxyPass /close/ http://localhost:1935/close/

ProxyPass /idle/ http://localhost:1935/idle/

ProxyPass /send/ http://localhost:1935/send/

ProxyPass /fcs/ http://localhost:1935/fcs/

ProxyPass /fms/ http://localhost:1935/fms/


Enter new lines according to your webserver request

SSLProxyEngine on

ProxyPass /somefolder/ https://mywebsiteonsecureserver/somefolder/

ProxyPassReverse /somefolder/ https://mywebsiteonsecureserver/somefolder/


Also enable mod_ssl.so at the bottom

LoadModule ssl_module modules/mod_ssl.so

then you will be able to call

var my_lv = new LoadVars();

var response = new LoadVars();

response.onData = function(data) {

      trace("Data is " + data);

};

my_lv.sendAndLoad("http://localhost/somefolder/myscript.php",response,"POST");

hope it helps.

Cheers

Known Participant
March 6, 2015

Adobe, please provide some details to your current and possibly potential customers, in at least one of the many unanswered posts about making HTTPS requests from AMS.

P.S.

realeyes_jun,

RealEyes Media has been an inspiration to me for many years, and I would like to thank them for their efforts to better the media streaming community.

Also, would it be possible to please release the source to REDbug?