WhiteHatBox
Share Page
Following(0)
Partner(s)
lorand

CMD curl -i http://xxx.com not returning value

ReplyThanks 2019/05/02 17:15:35 0 0

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.


Karmagedon
2019/05/03 01:26:34
1 # lorand 2019/5/2 17:15:35

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.

Module Development - [email protected] // Thanks - https://ko-fi.com/arbots
lorand
2019/05/06 16:40:41
Karmagedon thanks, i see that you removed your ko-fi link, i just wanted to buy one ko-fi :)
Karmagedon
2019/05/07 04:40:16
3 # lorand 2019/5/6 16:40:41
Karmagedon thanks, i see that you removed your ko-fi link, i just wanted to buy one ko-fi :)
Thank you! https://ko-fi.com/bots4you
Module Development - [email protected] // Thanks - https://ko-fi.com/arbots
Karmagedon
2019/05/09 01:32:24
3 # lorand 2019/5/6 16:40:41
Karmagedon thanks, i see that you removed your ko-fi link, i just wanted to buy one ko-fi :)
I changed the address of the ko-fi page. The address of the new page in the signature.
Module Development - [email protected] // Thanks - https://ko-fi.com/arbots
<< < 1> >>
VerifyCode
Advanced Option