Search found 46 matches: webpagecontents

Return to advanced search

Re: Question about wfReadUrl()

Puedes usar la funcion WebPageContents(cUrl)

Code: Select all  Expand view

if !Empty(WebPageContents(cUrl))
   //... tu codigo
else
   MsgStop('Url not found')
endif
 
by cmsoft
Fri Apr 05, 2024 3:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Question about wfReadUrl() - SOLVED
Replies: 20
Views: 2836

Re: function urlLoad( cUrl )

... to follow along and was busy reading what I found in our manual folder (fwfun.chm, fwcmd.chm, fwclass.chm,...). Now I am curios about XImage(), WebpageContents() where could I find out more about these interesting things? Maybe someone would be kind enough to point me to a wiki for these? Kind ...
by Antonio Linares
Sat Feb 17, 2024 8:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: function urlLoad( cUrl )
Replies: 17
Views: 1698

Re: function urlLoad( cUrl )

... to follow along and was busy reading what I found in our manual folder (fwfun.chm, fwcmd.chm, fwclass.chm,...). Now I am curios about XImage(), WebpageContents() where could I find out more about these interesting things? Maybe someone would be kind enough to point me to a wiki for these? Kind ...
by Ruth
Sat Feb 17, 2024 4:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: function urlLoad( cUrl )
Replies: 17
Views: 1698

Re: function urlLoad( cUrl )

nageswaragunupudi wrote:Both the functions WebPageContents() and URLDownloadToFile() work only on Windows OS.
For Web Applications, we need platform independent tools and CURL seems to be the popular choice.


I never needed of such a function for web applications.
by Enrico Maria Giordano
Sat Feb 17, 2024 2:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: function urlLoad( cUrl )
Replies: 17
Views: 1698

Re: function urlLoad( cUrl )

Both the functions WebPageContents() and URLDownloadToFile() work only on Windows OS.
For Web Applications, we need platform independent tools and CURL seems to be the popular choice.
by nageswaragunupudi
Sat Feb 17, 2024 1:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: function urlLoad( cUrl )
Replies: 17
Views: 1698

Re: New FTDN October/Octubre 2023 (FWH 23.10)

Agosto, Septiembre, Octubre 2023 ================================ * Fubción WebPageContents() en imgtxtio.prg: En caso de URLs inexistentes devuelve NIL, mientras que se espera que el valor de retorno sea siempre un valor de carácter. Ahora se ha corregido para ...
by Antonio Linares
Sun Dec 03, 2023 4:46 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN October/Octubre 2023 (FWH 23.10)
Replies: 1
Views: 3916

New FTDN October/Octubre 2023 (FWH 23.10)

August, September, October 2023 =============================== * function WebPageContents() in imgtxtio.prg: In case of non-existent URLs this function is returning NIL, where as return value is expected to be always a character value. Now fixed to return "" ...
by Antonio Linares
Thu Nov 02, 2023 9:53 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN October/Octubre 2023 (FWH 23.10)
Replies: 1
Views: 3916

Re: Actualizar xBrowse con un Clic del ratón?

... ejecucion return IfNil( cContents, "" ) local cDefault := MEMOREAD( "c:\fwh\bitmaps\sea.bmp" ) AEval( aCols, { |a,i| a[ 4 ] := WebPageContents( a[ 4 ] ), ; If( Empty( a[ 4 ] ), a[ 4 ] := cDefault, nil ) } ) Esto muestra solamente la primer foto faltante, pero si hay muchas, ...
by cmsoft
Sat Aug 19, 2023 12:52 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Actualizar xBrowse con un Clic del ratón?
Replies: 22
Views: 1395

Re: Website logo

... website (https://besticon-demo.herokuapp.com) for this task. You can retrieve the entire webpage using the onboard Fivewin function: cData := WebPageContents(cUrl) Best regards, Otto After this, we need to parse the webpage code and extract the image-links. Possible, but we need to write the ...
by nageswaragunupudi
Thu May 18, 2023 10:23 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Website logo
Replies: 8
Views: 507

Re: Website logo

Hello,

I wouldn't use an unknown website (https://besticon-demo.herokuapp.com) for this task.

You can retrieve the entire webpage using the onboard Fivewin function: cData := WebPageContents(cUrl)

Best regards,
Otto
by Otto
Thu May 18, 2023 10:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Website logo
Replies: 8
Views: 507

Re: Http call returns image

... code: cURL  := "https://cdn.images.express.co.uk/img/dynamic/109/590x/Apple-links-587431.jpg"MEMOWRIT( "myfile.jpg", WebPageContents( cURL ) ) // This one line of code does the job// Check if saved correctlyXIMAGE( "myfile.jpg" )  ...
by nageswaragunupudi
Sat May 06, 2023 3:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Http call returns image
Replies: 3
Views: 238

Autentication issue with cUrl

... MsgRun( cLink, "READING FORUM PAGE", { || uResponse := WebPageContents( cLink, .t. ) } ) Now the new site is giving a : "message":"Unauthorized" I tried a sample from Tim : (changed real ...
by Marc Venken
Fri Oct 28, 2022 8:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Autentication issue with cUrl
Replies: 3
Views: 380

Xbrowse can read Jason... but I can not ...

... the data that are deeper inside the code ? I want the 400 value as a variable : MsgRun( cLink, "READING FORUM PAGE", { || uResponse := WebPageContents( cLink, .t. ) } ) uResponse = substr(uResponse,1,len(uResponse)-1) hb_JsonDecode( uResponse, @hDatos ) // -> Hash nOfferte = hDatos["isQuotation"] ...
by Marc Venken
Tue Oct 04, 2022 2:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse can read Jason... but I can not ...
Replies: 1
Views: 236

Re: Mr. Rao's samples collection.

Code: cText := WebPageContents( cPageUrl, .t. ) where is WebPageContents() come from :?: can u use CURL instead to download Webpage :?: (if Yes how under FiveWin ) function WebPageContents( cURL, [lText := .f.] ) --> cText/cImage ...
by nageswaragunupudi
Sat Aug 06, 2022 4:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Mr. Rao's samples collection.
Replies: 139
Views: 21643

Re: Mr. Rao's samples collection.

hi Otto,
Otto wrote:do you mean this sample?
https://mybergland.com/fwforum/forum.zip

YES,
Thx for File

Code: Select all  Expand view
cText := WebPageContents( cPageUrl, .t. )

where is WebPageContents() come from :?:

can u use CURL instead to download Webpage :?: (if Yes how under FiveWin )
by Jimmy
Fri Aug 05, 2022 11:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Mr. Rao's samples collection.
Replies: 139
Views: 21643
Next

Return to advanced search