Extracts a substring from input text by specifying start and length or start and end indices via POST.