0

I have a command line and i want to convert this into a servlet request in a bash script.How can i do this? For example: >>Command arguments

the http servlet request shud be : http://localhost:8080/webshell?op="command"&args="arguments"

2 Answers 2

1

I suggest you use curl or wget.

Note that it's irrelevant that it'll be talking to a servlet. You want to make an HTTP request: the implementation of the server doesn't affect how you make the request.

Sign up to request clarification or add additional context in comments.

Comments

1

you can use wget or curl on the CL of mac/linux systems. Just try

wget <url>

1 Comment

if it does what you need it to do sure. i think wget/curl or more ubiquitous though...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.