• Dear Cerberus X User!

    As we prepare to transition the forum ownership from Mike to Phil (TripleHead GmbH), we need your explicit consent to transfer your user data in accordance with our amended Terms and Rules in order to be compliant with data protection laws.

    Important: If you accept the amended Terms and Rules, you agree to the transfer of your user data to the future forum owner!

    Please read the new Terms and Rules below, check the box to agree, and click "Accept" to continue enjoying your Cerberus X Forum experience. The deadline for consent is April 5, 2024.

    Do not accept the amended Terms and Rules if you do not wish your personal data to be transferred to the future forum owner!

    Accepting ensures:

    - Continued access to your account with a short break for the actual transfer.

    - Retention of your data under the same terms.

    Without consent:

    - You don't have further access to your forum user account.

    - Your account and personal data will be deleted after April 5, 2024.

    - Public posts remain, but usernames indicating real identity will be anonymized. If you disagree with a fictitious name you have the option to contact us so we can find a name that is acceptable to you.

    We hope to keep you in our community and see you on the forum soon!

    All the best

    Your Cerberus X Team

HTTP and 301 redirect

muruba

New member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
Patreon Silver
Joined
Jul 5, 2017
Messages
230
Hi all,

I noticed 301 redirect is not supported for HTTP requests and that led me to the question: is it something that should be supported out of box or this is some functionality the end user has to implement themselves?

Thanks!

Cheers
 
So you do a httprequest on an adress which basically just does a redirect? What code do you get? 301?
Please excuse the stupid questions but I have not much experience with HTMLRequests as I never did this and wonder why you do it?
 
Basically I was calling my extra sophisticated analytics backend from my super great game via HTTP. Last night I noticed that IOS complained about HTTP and said HTTPS is enforced now. So I installed certs on my server and made sure the switch from HTTP->HTTPS is there via 301 redirect. Then I noticed as GLFW targets stopped sending data and stopping at getting 301 redirect back (HTTP). No biggie for me - I turned off redirect on the server.

But then I remembered that Java's http client as well as CURL have 'follow redirect' switches that should basically support these redirects without human intervention.

So mainly wondering what is the expected default behaviour for the HTTP requests functionality regarding redirects: to seamlessly support redirects or give user the choice to support it or leave it to the user to parse the response and issue a new request?

Just noticed if you go to http://www.cerberus-x.com that results in redirect so basically if CX issues this request it will not get the "real" front page back but will stop after this response:

  1. Request URL:
    http://www.cerberus-x.com/community/
  2. Request Method:
    GET
  3. Status Code:
    301 Moved Permanently
 
Yeah, oh well, something that probably can be configured in curl. Will look at it.
 
Back
Top Bottom