How to POST html data to be handled by a route endpoint

Richard Damon Richard at Damon-Family.org
Sat Mar 7 14:47:36 EST 2020


On 3/7/20 5:15 AM, Νίκος Βέργος wrote:
> When superhost.gr/test tries to post html form data to the route endpoint '/mailform' it sends it to superhost.gr/mailform and NOT at superhost.gr/test/mailform as it should have done.
>
The HTML path /mailform means server relative path, so the path is
relative to the SERVER, not the current page, so it would be
superhost.gr/mailform

The other format goes through a function which might re-interpret the
path and either make it page relative or add in the path of the current
page to get to /test/mailform


-- 
Richard Damon



More information about the Python-list mailing list