0
My PHP Curl does not wait for the server to render the data from within the iframe that interests me and comes back with the page but without the data, because the ajax request takes 6 to 7 seconds after loading the page.
This is the address http://200.101.69.145/segundavia/CodigoDeBarrasParaPagamento/ImprimirFatura?identUc=707139&mesAnoFatmto=01%2F03%2F2015&numeroFd=0
If that’s not the best way and you know a better way, I’m grateful.
Curl will not run ajax. It takes what it has natively on the page.
– Bacco
What you can try is to extract the internal address and make a new request: http:/200.101.69.145/segundavia/Telerik.ReportViewer.axd?instanceID=b69b05929aab4b929073296b785e7285&optype=Report&PageIndex=0&RenderID=d53fdbceeec5468605f39339de9ce9&RenderingFormat=HTML5Interactive
– Bacco
But at the first request Curl will not wait for iframe to return with these values, it will only return with the content natively on the page. Then I’m back to square one.
– Kleyton Menezes
Ever spied the coded values on base 64 right at the beginning of the source? Take a look at __VIEWSTATE, there might be something interesting there. If not, it may be the case to use your browser’s Developer mode to study where the values you need come from, because one way or another they are referenced in the source of the initial (or in some resource loaded by this one). If your browser renders that, nothing prevents you from playing the behavior programmatically.
– Bacco