Hi guys,
I am trying to query a URL using curl command in tsystem :
"cmd curl
http://test.sd.com/testxxxxx.jsp?param1=Badrish Singh"
]
when i run this command it just displays this on console and the job never stops:
connecting to socket on port 3405
connected
Microsoft Windows XP
(C) Copyright 1985-2001 Microsoft Corp.
Please suggest a better way to use curl command in tsystem.
Thanks in adv!
Baddy
new String[]{"cmd","/c","D:\\curl
http://test.sd.com/testxxxxx.jsp?param1=Badrish Singh"}
or
new String[]{"cmd","/c","D:\\curl","http://test.sd.com/testxxxxx.jsp?param1=Badrish Singh"}
Regards,
Pedro
thanks for your reply Pedro,
when i run your first suggestion , it gives the following error :
'curl' is not recognized as an internal or external command,
operable program or batch file.
And when I run the second , it gives the following error:
'http:' is not recognized as an internal or external command,
operable program or batch file
Sorry, I have less knowledge of Java.
thanks and waiting for your response,
Baddy!
Hi
new String[]{"cmd","/c","curl
http://test.sd.com/testxxxxx.jsp?param1=Badrish Singh"}
or
new String[]{"cmd","/c","curl","http://test.sd.com/testxxxxx.jsp?param1=Badrish Singh"}
One of them must be working fine.
If not, you'd better use the absolute path of 'curl'.
Regards,
Pedro
both of these commands give the error:
'curl' is not recognized as an internal or external command,
operable program or batch file.
Can you please suggest how to use the absolute path .
Like , in command prompt my command is like this and it works perfect :
D:\>curl
http://test.sd.com/testxxxxx.jsp?param1=BadrishSingh
(since curl.exe is in D:/>)
Please tell how to do the same in tsystem. Is there any way I can set the path of curl.exe in tsystem?
new String[]{"cmd","/c","D:\\curl
http://test.sd.com/testxxxxx.jsp?param1=Badrish Singh"}
or
new String[]{"cmd","/c","D:\\curl","http://test.sd.com/testxxxxx.jsp?param1=Badrish Singh"}
Regards,
Pedro