Post Reply 
(solved) altering GET request after a forum "POST".
Oct. 07, 2010, 11:18 PM (This post was last modified: Oct. 08, 2010 01:24 AM by Toppy.)
Post: #1
(solved) altering GET request after a forum "POST".
EDIT: Please disregard, I figured it out allready Smile!



Hello,

If someone would be willing to help me ?
Let me explain the situation I would like to change, on specific forums,
after you did a "POST" request (due to a reply to a topic), after the post is done, the server replies with a some Location header like for instance Location: forum.server.org/topictitlehere/page30#entry337606

Is it possible to write a filter that will alter that server "Location:" response to point to the start of the thread, for instance, so that the browser will receive :
Location: forum.server.org/topictitlehere/
instead of...
Location: forum.server.org/topictitlehere/page30#entry337606

I guess, perhaps changing that Location string could be done fairly easy, but I would really like it happening ONLY after a POST request, so NOT when I want to naviate to a specific forum thread page to simply read, but only after I added a response.

Guess, that 's not easy to do, so my simple Q is, is what I would like, possible in any way ?

Thank you for any help.

Toppy.
Add Thank You Quote this message in a reply
Oct. 08, 2010, 04:34 AM
Post: #2
RE: (solved) altering GET request after a forum "POST".
Thumbs Up
But what if I need to know how Wink
Add Thank You Quote this message in a reply
Oct. 08, 2010, 01:47 PM (This post was last modified: Oct. 08, 2010 01:49 PM by Toppy.)
Post: #3
RE: (solved) altering GET request after a forum "POST".
(Oct. 08, 2010 04:34 AM)JJoe Wrote:  Thumbs Up
But what if I need to know how Wink

JJoe,

I turned out the GET request after a tread reply was different than a normal "show me page xxx of thread xxx" request. So, I didn't have to care if it followed a POST.Wink

Code:
In = TRUE
Out = FALSE
Key = "Location: 5 Go to top of topic after thank you post (TEST)"
URL = "forum.server.net"
Match = "(*)\1page__st__[0-9]+__*"
Replace = "\1"
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: