One of my first posts on this site was regarding a down-loader program that I wanted to write for a website... This I have accomplished, after that, they encoded the links I was using with base32 ( or something like that ) after which I decoded the links, and made my program work again...
Now, they have some sort of checker running before you access the site for the first time ( which creates a session key or something of the sorts that expires after x hours )
The site in question is Kissanime
On to my question, how can I make my current solution bypass this check? , It says that the process takes 5 seconds to complete, and I have made my program wait 10 seconds to be safe, to no avail ( didn't think it'd be that easy though )
I'm on my phone currently but will add my current code as soon as I get to my PC
What I have gathered from looking through the page in question with chrome's development tools, is that this "check" is most likely created for the sole purpose of blocking programs from accessing it, but I have seen other programs using the site to pull data from so there has to be a way...
In conclusion, I am quite inexperienced with using Delphi's Indy components to interface with websites in general, so this is all new ground for me ( Note : This is solely for the purpose of learning, I do not intend to do illegal activities by doing this )
EDIT : Adding Code
procedure TForm1.btnParseClick(Sender: TObject); // Clicking on the POST login info button
var
Params : TStringList;
UserName , Password : string;
begin
Username := edtUsername.Text; // Save the username
Password := edtPassword.Text; // Save the password
IdHTTP := TIdHTTP.Create(self); // Create HTTP component
IdHTTP.Request.UserAgent := 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0'; // Set user agent
IdHTTP.HandleRedirects := True; // Set flag to automatically handle any redirects
IdHTTP.Get('http://kissanime.com/Login'); // Get the login page
Sleep(1200);
// now submit the webform...
Params := TStringList.Create; // Create a stringlist
try
Params.Add('username=' + UserName); // add username
Params.Add('password=' + Password); // add password
Params.Add('btnSubmit='); // add simulation of "btnSubmit" click
Params.Add('redirect='); // Redirection
IdHTTP.Post('http://kissanime.com/login', Params); // Post information
finally
Params.Free; // Free parameter stringlist
mmoOutputTest.Lines.Add('Login Sucessfull'); // output
mmoOutputTest.Lines.Add('--------------------------');
mmoOutputTest.Lines.Add('Step Two : Enter the Anime Episode List Link');
mmoOutputTest.Lines.Add('--------------------------')
end;
end;
When running my program , i get the following error : HTTP/1.1 503 Service Temporarily Unavailable.