The page is sending the file in curl, I want to get the download link insted
there is a page where i need to send the password and then i get the file to upload. the message goes to the same page address as its download and the download manager appears (download starts automatically). now i want to do the same, but in curl, i have sent the data to url and then send the file back to me, but i dont want my script to download the whole file, i only want to get the download link this is myself. How can i do this?
a source to share
To prevent automatic loading, you must set curl to not follow redirects. I can't remember the exact command, but the default curl will follow automatic updates and URL redirects that happen within seconds, so people don't really see it happening.
I don't seem to understand what you really want to do, but if you just want a link, have the php script execute the entire curl entry and that's it when they click. It doesn't matter that the web server requires a password before accessing the file, you cannot skip this step.
a source to share