I need you create for me curl script that check the responses from the servers and filter them
So let me clarify it !
We have 40 differents servers listed on the server configuration file "[login to view URL]"
Each server on this list is identified by an "ID" ( un number ex : "4500" ) and an URL
What we need is to check if all the 40 servers are available and working so we will send an CURL request and see the response
We know how to do that, but the problem is that we have 40 server so every time we need to execute the CURL x 40 times !
This is the CURL :
curl -X POST -H 'Content-type:text/xml' -d @[login to view URL] https://localhost/script/
As you can see the CURL containt a XML content, we have an xml content for each server with the server ID number '[login to view URL]'
So the script will execute the same CURL request by changing the xml file name we will provide you a text file with all the 40 servers xml files everyone on a line
And the response is :
<SOAP-ENV:Envelope xmlns:SOAP-ENV="[login to view URL]">
<ns2:Reponse xmlns:ns2="[login to view URL]">
<ns2:LibelleMessage>Téléphone OK- Mail OK</ns2:LibelleMessage>
<NUTELF ADRRTC="0120202020" CDPORT="O" />
<ADEMAF ADREMA="email [login to view URL]" />
<PARTENAIRESCAD IDPIVOT="F50032065474648 " />
When the server is working good :
When something wrong :
The result that we want is :
The script check all the 40 servers responses and show us the result on a table format :
Server ID | Server Name | Server HTTP code Statut | Server Accord response (true or false) |
in the end it give us the total of "true" and total of "false"
13 freelancers estão ofertando em média €30 nesse trabalho
Hi, I will write the loop for you with neat table report. Please send me a zip with [login to view URL] + a few [login to view URL] so that I could test before dfelivery. Thank you for taking me into consideration.
I can create a Python script for you which will do all the job. Bash is OK too, but Python is more flexible. What is your OS? Do you have Python preinstalled? Regards, Leo
Hello there, what about singlerun with multicurl? I think it will be much faster than 40 curl instances one after another? If you are interested contact me, for more details. Cheers,
Hi I've read your reqs, and I can help you create those scripts to curl those 40 servers and give the results as requested. PM me and lets discuss about this