Mahmoud Nabil
23-07-2024, 04:38 PM
هذا الكود مسؤول عند اختبار الانترنت عن طريق الاتصال بموقع جوجل والتأكد من حالة الإتصال لو الأتصال تم بيظهر رسالة You are connected to the Internet. ولو فشل الوصول للموقع بيظهر رسالة You are not connected to the Internet.
result = HTTP.TestConnection("http://www.google.com", 20, 80, nil, nil);
if result == true then
Dialog.Message("Notice", "You are connected to the Internet.", MB_OK)
elseif result == false then
Dialog.Message("Notice", "You are not connected to the Internet.", MB_OK)
end
المطلوب تعديل الكود بحيث يجلب اعادة التوجية فمثلا هذا الرابط https://stackoverflow.com/questions/29011391 اذا حاولنا استخدامة سيتم اعادة التوجية الي
https://stackoverflow.com/questions/29011391/generate-random-bmp-in-cli
كيف نستطيع جلب اعادة التوجية من خلال الاوتبلاي ميديا ستديو بمعني الأتصال برابط ما وعندما يتم تغيير الرابط يتم جلب الرابط الجديد
This code is responsible when testing the Internet by connecting to the Google site and checking the status of the connection if the connection is made by showing a message You are connected to the Internet. If access to the site fails, a message appears You are not connected to the Internet.
result = HTTP.TestConnection("http://www.google.com", 20, 80, nil, nil);
if result == true then
Dialog.Message("Notice", "You are connected to the Internet.", MB_OK)
elseif result == false then
Dialog.Message("Notice", "You are not connected to the Internet.", MB_OK)
end
What is required is to modify the code so that it brings redirection, for example, this link https://stackoverflow.com/questions/29011391 if we try to use it, it will be redirected to
https://stackoverflow.com/questions/29011391/generate-random-bmp-in-cli
How can we fetch redirection through AutoPlay Media Studio 8 in the sense of connecting to a link and when the link is changed the new link is brought
result = HTTP.TestConnection("http://www.google.com", 20, 80, nil, nil);
if result == true then
Dialog.Message("Notice", "You are connected to the Internet.", MB_OK)
elseif result == false then
Dialog.Message("Notice", "You are not connected to the Internet.", MB_OK)
end
المطلوب تعديل الكود بحيث يجلب اعادة التوجية فمثلا هذا الرابط https://stackoverflow.com/questions/29011391 اذا حاولنا استخدامة سيتم اعادة التوجية الي
https://stackoverflow.com/questions/29011391/generate-random-bmp-in-cli
كيف نستطيع جلب اعادة التوجية من خلال الاوتبلاي ميديا ستديو بمعني الأتصال برابط ما وعندما يتم تغيير الرابط يتم جلب الرابط الجديد
This code is responsible when testing the Internet by connecting to the Google site and checking the status of the connection if the connection is made by showing a message You are connected to the Internet. If access to the site fails, a message appears You are not connected to the Internet.
result = HTTP.TestConnection("http://www.google.com", 20, 80, nil, nil);
if result == true then
Dialog.Message("Notice", "You are connected to the Internet.", MB_OK)
elseif result == false then
Dialog.Message("Notice", "You are not connected to the Internet.", MB_OK)
end
What is required is to modify the code so that it brings redirection, for example, this link https://stackoverflow.com/questions/29011391 if we try to use it, it will be redirected to
https://stackoverflow.com/questions/29011391/generate-random-bmp-in-cli
How can we fetch redirection through AutoPlay Media Studio 8 in the sense of connecting to a link and when the link is changed the new link is brought