I need to programmly create topics on my board. I use Java and HtmlUnit for this. But there is one problem — if program post once all is okay (forum response is http 200), but if start program again then PhpBB response is «http 304» and redirection to category where new topic should be located but topic not added. The question is how to fix this?
Here is WireShark dump of first successfull topic addition (login, posting): http://a2k.in/2ai
And here is same request but with 304 redirect: http://a2k.in/2aj
Posting is from admin account with not posting time limitations. Here is posting from browser (Chrome) log: http://a2k.in/2ak
What is the problem? The difference between my request and browser request is in header «Cache-Control: max-age=0», «Origin: http://localhost». Maybe there is problem in cache-controller?