Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7527237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:03:55+00:00 2026-05-30T04:03:55+00:00

I was able to use How To Get Redirect URL In PHP but now

  • 0

I was able to use How To Get Redirect URL In PHP

but now it does not work anymore. site where I try to get redirect url is using temporary 302 redirection.
It gives me “05 Request method ‘HEAD’ not supported”

Only way for me to see “link” if I put get_headers in my script, I will get bunch of stuff and I see redirect displayed in “[Cache-Control] => private [Location] => http://www.test.com” towards end.

How do I modify above script to work with this new 302 redirect?
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T04:03:56+00:00Added an answer on May 30, 2026 at 4:03 am

    If the server doesn’t support HEAD, you could retry with GET. Make sure that if you do this you only search for the Location header in the headers (not in the body).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to get the redirect URL using cURL in PHP. The code
In code: //I know that to get this effect (being able to use it
Has anyone been able to get Windows Installer to use the InstallUISequence table during
I am not able to use the breakpoint in Studio with Javascript. I'm able
I am able to use the NHibernate Criteria API for an IN statement using
We use varnish as our load balancer (among other things) but we get some
I have a URL that is being generated using GET variables from a form
I'm trying to get the 301 URL Tracker package for Umbraco to work to
Part of my app requires login and is not able to use client-side authentication
I am trying to use php to link from my mobile site to my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.