Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Checking whether a server is running

Avatar

Level 8
Level 8

Hi all,

I have a form that should submit its xdp to a server side component. However if the server is down the user is left with a Error 404.

I am submitting through the following code:


myDoc.submitForm({


    cURL: submitUrl ,


    cSubmitAs: "XDP",


    aPackets: ["*", "pdf"],


    cCharset: "utf-8",


});

I am wondering if there is any way you can do a test before I do the actual submit to see if the server is up and if it is then do the submit?

Anyone with an idea how to do this?

Thanks in advance

Sincerely

Kim Christensen

Dafolo A/S

0 Replies