Code: Select all
site$ = "https://www.google.com"
;-------> SpiderBasic
Procedure HttpGetEvent(Success, Result$, UserData)
If Success
Debug Result$
Else
Debug "HTTPRequest(): Error"
EndIf
EndProcedure
; Get the content of this file, and display it in the debug window
;
HTTPRequest(#PB_HTTP_Get,site$, "", @HttpGetEvent())
;-----------> PureBasic ------------->
; HttpRequest = HTTPRequest(#PB_HTTP_Get, site$)
; If HttpRequest
; Debug "StatusCode: " + HTTPInfo(HTTPRequest, #PB_HTTP_StatusCode)
; Debug "Response: " + HTTPInfo(HTTPRequest, #PB_HTTP_Response)
;
; FinishHTTP(HTTPRequest)
; Else
; Debug "Request creation failed"
; EndIf
Is it possible to include "iFrames" or information from other websites, like YouTube videos?
Or some text as teasers from other sites? Do I have to download sites from other servers?
Thanks for help.