Get list of folders in a directory with httpservice

I am working on something that would require external access to a website, and preferably have different folders per item. Is there a way I can get a list of all folders under example.com/folders, so then i can go through and check each example.com/folders/folder for its contents?