Execute curl from java with processbuilder
问题 I Am writing a test porgram in java to test my connections to a restfull api in django (djangorestframework to be precisely). One of the options is to test on of the api's with curl. Running the curl command from the shell it works fine: e.g.: curl --show-error --request GET --header 'Accept: application/json' --user "user:pwd" http://127.0.0.1:8000/api/v1/ this returns nicely the api root urls and helptext in json format. Now when I try to invoke the same from java, using ProcessBuilder, i