I need a script that works the way illustrated below...
Working with two text files.
-
The first file has lines like:
00002|9658
00022|7748
00885|0059
(...About 100 lines like these)
The second file has lines like:
102030
000000
000566
122211
(...About 500 lines like these)
-
Accessing the url '[login to view URL]', get the cookies, which are 2.
Now using that cookies POST 'A' 'B' 'C' parameters to '[login to view URL]'
------
Parameters 'A' and 'B' are found in the first file
00002|9658
The '00002' is the parameter 'A' and '9658' the 'B'
The 'C' parameter is found in the second file.
------
What I need is to test each line of the first file with all lines from the second file
-
Searching for '/LINE/MAGIC/' in the html response of the POST
If it finds the '/LINE/MAGIC/' then save in the file '[login to view URL]' the parameters
that were used to find it, like '00002|9658|102030'. Now the script should skip to
the next line in the first file because already found the right parameter 'C'...
------
*** I need it done ASAP
|||
*** The script MUST be multi thread (testing several lines at once)