Apple Script cUrl .php Websites

Some sites have .php redirecting pages so that I can’t parse the url of what they are doing. Is there anyway to cUrl past the html of the page so it goes to the url link then it gets saved? Preferably I don’t want to use the browser at all.

Probably I am not the only one, who did not quite get your question.

PHP redirects are typically http headers, sent before the html code comes. If you curl -I an url, you will get these headers. “Location” is the one redirecting the browser.

if you use curl -i, you will get both, the http headers and the following html code.

No idea, if this helps, but possibly it helps to rephrase the question.

Regards, Jürgen