The Un-Official Proxomitron Forum
(solved) altering GET request after a forum "POST". - Printable Version

+- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums)
+-- Forum: Proxomitron Filters (/forumdisplay.php?fid=38)
+--- Forum: Filter Help/Request (/forumdisplay.php?fid=31)
+--- Thread: (solved) altering GET request after a forum "POST". (/showthread.php?tid=1673)



(solved) altering GET request after a forum "POST". - Toppy - Oct. 07, 2010 11:18 PM

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.


RE: (solved) altering GET request after a forum "POST". - JJoe - Oct. 08, 2010 04:34 AM

Thumbs Up
But what if I need to know how Wink


RE: (solved) altering GET request after a forum "POST". - Toppy - Oct. 08, 2010 01:47 PM

(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"