PxPlus User Forum

Twitter Twitter Twitter

Author Topic: *plus/Web/request and redirections  (Read 220 times)

Stéphane Devouard

  • Diamond Member
  • *****
  • Posts: 101
  • PxPlus guru with skills in PHP, JS, C#, Java
    • View Profile
    • Stéphane's Web Resume
*plus/Web/request and redirections
« on: May 19, 2022, 08:58:39 AM »
I just noticed an issue with *plus/web/request

An home page I am trying to get has the following pattern :

I was doing a GET with the utility to the domain as it is stored in the configuration files, ie

The request returns a 301 status with a
Location: somescript.php?pg=somepage HTTP header

So *plus/web/request follows it, but instead of trying :

It tries :

Which obviously fails and returns a "Cannot contact host server" error
I have worked around the issue by requesting the whole home page URL in the first place instead of just the domain name URL

You may however want to enhance the redirection following logic in a future version
« Last Edit: May 19, 2022, 09:03:04 AM by Stéphane Devouard »
Stéphane Devouard
Portfolio | Work