0
I’m developing an automatic billet generator, using a tool provided by Banrisul Bank. To generate this automatic ticket I need to send a request through the following URL: https://ww8.banrisul.com.br/brb/link/Brbw2Lhw_Bloqueto_Titulos_Internet.aspx
The data I reported on this link are fictitious, I wonder what is the best way to get the return of this boleto generated automatically by Curl? How can I make the boleto be opened in a way that facilitates printing?
Thank you.
Well, you’ll get a little tricky in this case, because the contents of the billet itself is generated in a frame and called by JS. If you simply get the result of Curl, you will not get the billet.
– Bacco
@Bacco the right one would create a pop-up then?
– gumaro
Difficult to say what is best in this case, depends on the application. When in doubt, just provide a link/button and put a warning below saying that the user will be directed to the bank system. Some things don’t make it right.
– Bacco
@Bacco I understand, I tried in several ways to get an answer to this problem, because the Manager requested something other than what has to be done. So my question here at Stackoverflow.
– gumaro
Explain to him that the site uses a javascript-generated frame, etc... (maybe he doesn’t understand and gives up complicating :) )
– Bacco
@Bacco will have to be that way. Thanks for the help
– gumaro
To read the page that runs Javascript to be generated I once used this lib https://github.com/mikehaertl/phpwkhtmltopdf.
– Édipo Costa Rebouças
Why is my question too broad?
– gumaro
Take the action of the form, and the fields that the form has. Mount a CURL with the exact same content. Inspecting the element and checking the network tab can help you see what the current form sends and where it sends Try using the network tab of the browser, and see all the actions the page does, and
– Bruno Pitteli Gonçalves