I am attempting to use the HTTP plugin to post to the form at the link:
http://familytreemaker.genealogy.com/ft … earch.html
And then grab the response. I can manually submit the form just fine, however when I use the plugin with the following code the page data response is “Method Not Allowed The requested method POST is not allowed for the URL /fto_ssdisearch.html”.
From what I’ve found searching the internet there seem to be two reasons for this error
- The form has name attribute “”
- the extension of the form action attribute filename is .exe
Neither of these makes sense to me because I can manually submit the form without any problem.
Anybody have any suggestions? Is there anything I can do with the Apache HTTPClient package to allow me to post to this form?
All help greatly appreciated
Jon
var client = plugins.http.createHttpClient();
var FamilyTreeMaker = plugins.http.getPoster('http://familytreemaker.genealogy.com/fto_ssdisearch.html', 'my_client');
var didAddParam1 = FamilyTreeMaker.addParameter("se", "Thornton");//Lname
var didAddParam2 = FamilyTreeMaker.addParameter("se", "BillyBob");//Fname
var didAddParam3 = FamilyTreeMaker.addParameter("be","012345678");
if(didAddParam1 && didAddParam2 && didAddParam3) {
var Posted = FamilyTreeMaker.doPost();
if (Posted) {
globals.gHTML = FamilyTreeMaker.getPageData();
}
}