tags:

views:

108

answers:

3

i have trac setup on a machine that's different from my website, what i want to do is, everytime there is error(like when direct to a 404/500 pages) on the website, it will automatically submit a new ticket to server with trac installed, i tried to use the most intuitive way:

http://www.example/trac/newticket?reporter=anonymous&summary=test&type=defect&description=somethinginhere&action=create&status=new&priority=minor

but somehow it doesn't submit, but preview it, so i just wondering how can i overcome this. what i planning to do is using a img tag with src with the above address.

or is there a better way to it, i know installing xmlrpcplugin might solve my problem, but for now i just need a quick solution.

A: 

Can't you debug it with FireBug and what happens locally? Maybe some extra value is set when you press 'create' instead of 'preview'?

Marcus Lindblom
Or maybe it uses POST instead of GET?
alastairs
after careful consideration, i think setup an xmlrpc plugin is the best way to go, also it provide lots more functionalities. thanks guys for the advices.
vito huang
A: 

You might want to take a look at the TracCmdScript.

RjOllos
A: 

There is a __FORM_TOKEN value that I think you need to get so that your ticket creation will be accepted.

retracile