Question:
hi, i m trying to make a script that get the redirected url..
it is working on ActiveX version (windows app) but not on php mode :(
on php mode it's returns null string:(
i tried following code:
$success = $objHTTP->get_WasRedirected();
if ($success = true)
{
$objHTTP->get_FinalRedirectUrl($objString);
$strURL = $objString->getString();
file_put_contents('completeI.txt', $strURL);
}
but the output file (completI.txt") is blank :(
can any one help me out please?
best regards
Please provide a sample script w/ URL such that I can reproduce the problem. Also, please indicate the operating system and whether it is 32-bit or 64-bit so that I can provide a new build if necessary.
mAlam,
I downloaded your script, but it's using an older version of Chilkat. Re-check using the latest builds I just uploaded.
sir, i downloaded the version from your site.. and it seems. solved the last issue.. but arise a new one..
i use following code:
$strHTML = $objHTTP->quickGetStr($url);
$success = $objHTTP->get_WasRedirected();
if ($success = true)
{
$objHTTP->get_FinalRedirectUrl($objString);
$strURL = $objString->getString();
file_put_contents('completeI.txt', $strURL);
}
but now it seems, it first download the whole file/redirected url, then it shows/export redirected url..
i tried with few file..
and if the redirected file/url is too big, it's take so long to get the redirect url.. but it's works nicely as windows version.. but not on php :(
i hope i m clear..
bets regards
I would need an exact URL that allows me to reproduce the problem.
sir, you have solved my another issue "PHP Zip to memory then provide as download to user.." what about this issue.. ok.. if you want i can send you the link, my user name and password for that site.. but i m sorry i can't post those info here.. can you give me your email address (via PM) so, i can send those info there?
please sir, leave a reply asap
best regards
Please try this new HTTP ActiveX build:
http://www.chilkatsoft.com/preRelease/ChilkatHttp.zip
If the problem remains, please send the URL w/ temporary login credentials to me at support@chilkatsoft.com
Best Regards, Matt
Please test w/ this build:
http://www.chilkatsoft.com/preRelease/chilkat-9.3.2-php-5.3-x86_64-linux.tar.gz
thanks a lot for your release/try..
but it didn't work .. same.. issue :( it's taking so long ..
once again thanks for your kindness..
best regards
dear sir, as you asked/agreed i have sent you a email for the url, username and password
the sent email subject is : mAlam Chilkat Forum post "PHP FinalRedirectUrl is not working.."
i hope those info will help you to investigate the issue..
once again, for your kind information, ActiveX version on windows PC (desktop) works good :) but not the php version :(
best regards mAlam
I don't recall ever getting the contents of the LastErrorText captured after calling quickGetStr. Please post it here...