Searching ASP search forms

I’ve been trying to crate a plugin to search legislative archive via Hansard. I’ve noticed however, that the search doesn’t produce a unique url, instead giving

http://hansardindex.ontla.on.ca/H2.asp

as the result. Is it even possible to search the Hansard index with Devonagent?

It is possible but you have to create an XML plugin using an HTTP post like in this example code:


<key>EngineURL</key>
<string>http://hansardindex.ontla.on.ca/H2.asp</string>
<key>Post</key>
<dict>
	<key>searchsession</key>
	<string></string>
	<key>searchcontents</key>
	<string>_agentQuery_</string>
</dict>

I’ve tried creating a plugin using this code, but I’m getting the following error from the website in Devonagent’s log: “Empty search string! - Please enter a search statement. Click on your browser’s BACK button to return to the search screen”

The code of the plugin is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Description</key>
	<string>Searches Hansard</string>
	<key>EngineURL</key>
	<string>http://hansardindex.ontla.on.ca/H2.asp</string>
	<key>Identifier</key>
	<string>com.ahallam.hansard.plugin</string>
	<key>Info</key>
	<string>Aaron Hallam</string>
	<key>Name</key>
	<string>Ontario Hansard</string>
	<key>Post</key>
	<dict>
		<key>searchcontents</key>
		<string>_agentQuery_</string>
		<key>searchsession</key>
		<string></string>
	</dict>
	<key>Version</key>
	<string>0.1</string>
</dict>
</plist>

Where might I be going wrong with getting the query into the search field?

It works fine, but you have to change EngineURL to EngineUrl.

Thanks for the tip. Everything’s working now.

Cheers!