emotta Posted May 31, 2016 Report Share Posted May 31, 2016 Quero chamar um link e ler o retorno dele, por exemplo> cHtml = LerLink("www.emotta.com.br") qual a melhor maneira de fazer isso? Tentei TIpClientHttp mas nunca vem nada.... Quote Link to comment Share on other sites More sharing options...
sistem Posted May 31, 2016 Report Share Posted May 31, 2016 retorno em HTML? oOle := CreateObject( "Microsoft.XMLHTTP" ) oOle:Open( "GET", "http://www.emottasistemas.com.br/", .f. ) oOle:Send() cHtml := oOle:ResponseBody oOle := nil ? cHtml Quote Link to comment Share on other sites More sharing options...
kapiaba Posted May 31, 2016 Report Share Posted May 31, 2016 Veja se ajuda também: http://forums.fivetechsupport.com/viewtopic.php?p=191033#p191033 Quote Link to comment Share on other sites More sharing options...
emotta Posted June 1, 2016 Author Report Share Posted June 1, 2016 Excelente, já tinha feito usando o mesmo esquema que a classe do sintegra fazia, mas mudei para a sua que é bem melhor e deu certo ! obrigado, abraços retorno em HTML? oOle := CreateObject( "Microsoft.XMLHTTP" ) oOle:Open( "GET", "http://www.emottasistemas.com.br/", .f. ) oOle:Send() cHtml := oOle:ResponseBody oOle := nil ? cHtml Quote Link to comment Share on other sites More sharing options...
kapiaba Posted June 1, 2016 Report Share Posted June 1, 2016 Eduardo, cual é o intuito disso? Serviria para que? Obg. abs. Quote Link to comment Share on other sites More sharing options...
kapiaba Posted June 1, 2016 Report Share Posted June 1, 2016 Mesmo em TXT, não etendi pohhha nenhuma. kkkkkkkkkkkkkkkkk, alguém clareia? #include "FiveWin.ch" FUNCTION SITE_EMOTA() LOCAL oOle, cHtml oOle := CreateObject( "Microsoft.XMLHTTP" ) oOle:Open( "GET", "http://www.emottasistemas.com.br/", .f. ) oOle:Send() cHtml := oOle:ResponseBody oOle := nil hb_MemoWrit( "CHTML.txt", Alltrim( cHtml ) ) RETURN NIL Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.