FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Debugger error when executing WebPageContents()
Posts: 103
Joined: Fri Aug 09, 2013 12:43 AM
Debugger error when executing WebPageContents()
Posted: Wed Dec 30, 2020 02:24 PM
This is not a support question. I'm not having a problem using the function during runtime. Everything is fine.

But during a debugging of WebPageContents(), there's an error which I believe is due to an interpretation of the escape sequence \".

The title of the error popup is in spanish, and is only partial. The partial string is 'Seleccione...'.

The line that generates the error is

Code (fw): Select all Collapse
if Lower( Left( cUrl, 7 ) ) == "http://" .or. Lower( Left( cUrl, 8 ) ) == "https://"
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Debugger error when executing WebPageContents()
Posted: Wed Dec 30, 2020 02:30 PM
Please try changing this line as
Code (fw): Select all Collapse
if Lower( Left( cUrl, 5 ) ) == "http:" .or. Lower( Left( cUrl, 6 ) ) == "https:"

Do you still get the error?
Regards



G. N. Rao.

Hyderabad, India
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Debugger error when executing WebPageContents()
Posted: Wed Dec 30, 2020 02:31 PM

D.

Could you please post a screenshot ?

thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 103
Joined: Fri Aug 09, 2013 12:43 AM
Re: Debugger error when executing WebPageContents()
Posted: Wed Dec 30, 2020 03:19 PM

I don't have the original code from last night, and I'm not getting the same error right now. Not sure what changed.

I was originally sending the command line http:\www.google.com, with backslashes. Maybe that generated the error.

I think we're ok, now.

How do I get a response return code, like 200 or 401? What's the oHttp property from FWGetOleObject() that I should be using?

https://github.com/HBEnthusiast/FW/blob ... 201230.wmv

Posts: 103
Joined: Fri Aug 09, 2013 12:43 AM
Re: Debugger error when executing WebPageContents()
Posted: Wed Dec 30, 2020 09:13 PM
oHttp:Status

Ok, thank you self.

You're welcome, self.


Happy Holidays & Regards,

Self



FWExplorer wrote:I don't have the original code from last night, and I'm not getting the same error right now. Not sure what changed.

I was originally sending the command line http:\\www.google.com, with backslashes. Maybe that generated the error.

I think we're ok, now.

How do I get a response return code, like 200 or 401? What's the oHttp property from FWGetOleObject() that I should be using?

https://github.com/HBEnthusiast/FW/blob ... 201230.wmv
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Debugger error when executing WebPageContents()
Posted: Thu Dec 31, 2020 10:38 AM

:-D

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion