Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

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