curl / trurl

a command line tool for URL parsing and manipulation.
https://curl.se/trurl/
Other
3.15k stars 102 forks source link

Shell Mode Feature #208

Closed NoobforAl closed 1 year ago

NoobforAl commented 1 year ago

Hi, Is possible add shell mode in this project ? for example I have one Url and I want test many query and check result . For Example:

trurl --url https://example.com -sh

command -sh is going to shell mode. and we can edit url and request.

for example replace the host name:

example.com >> set host=test.com
test.com >>

or get port and path:

test.com >> get  {port} 
443

and after this change and check request:

test.com >> sendReq
Not Found.
test.com >>

we can use all feature curl and trurl for url.

jacobmealey commented 1 year ago

For using multiple queries or hostnames and stuff --iterate might already do most of what you want. I'm not sure I understand the benefits of making an interactive shell - other than holding state between runs which could be done with a bash script or something.