Hello, i need some help with the CURL, i make the script but i have some problem hope someone can show me how to do ... I want to login in some website via CURL but they ask me some Questions example 2+3=? ... and every time the question is change (example when you refresh the page) how i can make the CURL to get that question first and after post the field + submit just with one request ? Thank you
You can't, those questions are to avoid such login (you have to prove that you're a human not a script)
Hello there, i didnt ask if is working or not, sure is working ... just dont find the right way to make this ... anyway who can make this just PM me and i will pay you for this. Ro: Numi spune ca nu merge asa ceva ca sigur merge, in internet merge orce sa faci, cat timp stii ce trebuie sa faci
Request the login page then process the login at the same time, so you scrape the content to where it says x + y =, remove the whitespaces execute the sum in php and get it to submit in the curl post fields. It can be done, although (based on personal skill levels) would take a while to complete.
Thats a nice solution, grab the html element containing the math, use str_replace(" ","",$element) then execute! I guess you could use something similar for those "Whats the capital of France?" type questions, by looking up in a database. Thanks.
I did this already using file_get_contents(); to read the page. Then I wrote code to pull the two digits out from the full page content, read what operator was being used (+, -, *, /) and made the calculation based on that.