HTTP server to start/stop/cleanup browsers
Write a script which accepts HTTP calls to Start, stop and cleanup browsers. Each of the operations should be different methods. Proxy setttings should be configurable. It should also take url as optional parameter. It should be done in ruby.
POST /browsersLaunches a browser instance with given browser type & optional proxy/url configs.
data required:
1) browser_typetype of browser to be launched. firefox/chrome
2) url (optional )URL to point-to post launch
3) proxy_server & proxy_port ( optional)Proxy server settings.
DELETE /browsersStops gracefully the launched browser instance
PUT /browsersdata required:
operation: cleanupCleans up the cookies from the last session.
rackup -p <port>cp ./startstopserver.plist ~/Library/LaunchAgents/
launchctl load ~/Library/LaunchAgents/startstopserver.list