Were Il prigioniero and La buona figliuola based on the same short story?
Il prigioniero:  The work is based on the short story "La torture par l'espérance" ("Torture by Hope") from the collection "Nouveaux contes cruels" by the French writer Auguste Villiers de l'Isle-Adam and from "La Légende d'Ulenspiegel et de Lamme Goedzak" by Charles de Coster. La buona figliuola:  The libretto, by Carlo Goldoni, is based on Samuel Richardson's novel "Pamela".
no