I want to detect redirect with cmd but i dontget any value back.
CMD curl -i http://xxx.com not returning value. Thested other command and worked. In cmd.exe is working.
I want to detect redirect with cmd but i dontget any value back.
CMD curl -i http://xxx.com not returning value. Thested other command and worked. In cmd.exe is working.
I want to detect redirect with cmd but i dontget any value back.
CMD curl -i http://xxx.com not returning value. Thested other command and worked. In cmd.exe is working.
You need to check the correctness of the site input. If the site exists and there are no errors, then the action should work correctly and return the result.
I made a little video:
If the CURL returns an error during operation (for example, if the site does not exist), then the CMD output in BotChief Editor will be empty.
On error, the CURL returns an exit code (see section EXIT CODES). You need to process them in your batch file.
You can use this command:
CMD curl -i https://xxx.com || echo ERROR
If you get an error, you will receive an error message.