You are not logged in.
Announcement
Unanswered posts
|
Pages: 1

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"
[[ my curl.exe is in D
>
I cant change the environment variables predefined in windows. Its C:\windows\system32 . ]]
when i run this command it just displays this on console and the job never stops:
[statistics] connecting to socket on port 3405
[statistics] connected
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
Please suggest a better way to use curl command in tsystem.
Thanks in adv!
Baddy
Offline

Hi
Try this command.
"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"}
Regards,
Pedro
Offline

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!
Offline

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
Offline

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?
Offline

Hi
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
Offline
Pages: 1