How to send data to Web server - Advanced Installer Community
Meena
Posts: 36
Joined: Thu Dec 12, 2013 9:07 am

How to send data to Web server

Hi Support,

I read the article http://www.advancedinstaller.com/user-g ... -info.html to send the collected data to web server. But, It doesn't return any value about the response whether it is sent successfully or not even I enabled the " Fail Installation if custom action returns an error" checkbox in the Execution Options section and how to review the "HttpPostServerResponse" property value while sending information to web server? I' attached the screenshot of the custom action settings.. Can you please send me an example to achieve this and value of HttpPostServerResponse.

Thanks,
Meena
Attachments
SendCollectedData.png
SendCollectedData.png (38.16 KiB) Viewed 5117 times
Meena
Posts: 36
Joined: Thu Dec 12, 2013 9:07 am

Re: How to send data to Web server

Hi Support,

Please provide your suggestions at the earliest. Its an urgent issue.

Thanks
Meena
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to send data to Web server

Hello,

The "HttpPostServerResponse" property will be set only if your web application returns a response to the HTTP server request. So, please make sure your web application returns a response after it receive the HTTP server request. Also, the "HttpPostServerResponse" property can be accessed anytime after the "Send install information to your web server" custom action is executed.

Let us know if this helped, otherwise please send us the .aip (project file) to support at advancedinstaller dot com and more details about what you are trying to achieve?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Meena
Posts: 36
Joined: Thu Dec 12, 2013 9:07 am

Re: How to send data to Web server

Hi Daniel,

Thank you for the response.

Can we view/display the server response in the "HttpPostServerResponse" property? HttpRequest sent to our web service is unable to receive but even then the advanced installer is not throwing any failure message. Need the clarification on this behavior.

Note: "Fail if the custom action returns an error" was checked in the custom action execution options.

Regards
Meena
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to send data to Web server

Hello Meena,

The "Send Install Information To Your Web Server" custom action won't fail if your web app returns a response (which is set in the "HttpPostServerResponse" property). In order to close the installation when the "HttpPostServerResponse" property is set with a certain value (e.g. "error") you can add a "Display Error Message" predefined custom action scheduled right after the "Send Install Information To Your Web Server" custom action. Also, you should use a condition like this:

Code: Select all

HttpPostServerResponse = "error"
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Meena
Posts: 36
Joined: Thu Dec 12, 2013 9:07 am

Re: How to send data to Web server

Hello Daniel,

This delayed suggestion did not help us.

How can we view the httpresponse status for the request sent to the webserver using the "Send Install Information To Your Web Server" custom action. How can we do it?

Regards
Meena
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to send data to Web server

Hello Meena,

In order to test the HTTP response of your web server you can use any application which supports testing HTTP requests. For example you can use the Hurl web site.

Let us know if you have any questions.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”