HB TIPClientHTTP() Freezes
-
- Posts: 25
- Joined: Mon Jan 26, 2015 9:53 am
- Location: Belem - Brazil
- Contact:
HB TIPClientHTTP() Freezes
My program freezes when I execute TIPClientHTTP() function.
oInternet:= TIPClientHTTP():New("http://www.google.com", .f.)
What could It be?
oInternet:= TIPClientHTTP():New("http://www.google.com", .f.)
What could It be?
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: HB TIPClientHTTP() Freezes
This sample doesn't freeze here:
EMG
Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oInternet:= TIPClientHTTP():New("http://www.google.com", .f.)
? oInternet
RETURN NIL
- Rick Lipkin
- Posts: 2397
- Joined: Fri Oct 07, 2005 1:50 pm
- Location: Columbia, South Carolina USA
Re: HB TIPClientHTTP() Freezes
sistemasit
When you go to Google.com .. your browser tries to resolve Google as a secure connection https://www.google.com/ ... Depending on your default browser .. using http://www.google.com may not resolve the secure connection ?
Rick Lipkin
When you go to Google.com .. your browser tries to resolve Google as a secure connection https://www.google.com/ ... Depending on your default browser .. using http://www.google.com may not resolve the secure connection ?
Rick Lipkin
-
- Posts: 25
- Joined: Mon Jan 26, 2015 9:53 am
- Location: Belem - Brazil
- Contact:
Re: HB TIPClientHTTP() Freezes
I already tried others URLs, happens the same. It freezes
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: HB TIPClientHTTP() Freezes
Have you tried my sample as is? Does it freeze? If yes, you have a problem in your xHarbour installation or in your http connection (a firewall?).
EMG
EMG
-
- Posts: 25
- Joined: Mon Jan 26, 2015 9:53 am
- Location: Belem - Brazil
- Contact:
Re: HB TIPClientHTTP() Freezes
I did Enrico. I tried your sample. I also downloaded the latest version of xHarbour.Enrico Maria Giordano wrote:Have you tried my sample as is? Does it freeze? If yes, you have a problem in your xHarbour installation or in your http connection (a firewall?).
EMG
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: HB TIPClientHTTP() Freezes
Does my sample freeze or not for you?sistemasit wrote:I did Enrico. I tried your sample. I also downloaded the latest version of xHarbour.Enrico Maria Giordano wrote:Have you tried my sample as is? Does it freeze? If yes, you have a problem in your xHarbour installation or in your http connection (a firewall?).
EMG
EMG
-
- Posts: 25
- Joined: Mon Jan 26, 2015 9:53 am
- Location: Belem - Brazil
- Contact:
-
- Posts: 25
- Joined: Mon Jan 26, 2015 9:53 am
- Location: Belem - Brazil
- Contact:
Re: HB TIPClientHTTP() Freezes
my TIP.LIB is may,28-2015
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: HB TIPClientHTTP() Freezes
It's very old. Mine is sep,2-2017.sistemasit wrote:my TIP.LIB is may,28-2015
EMG
-
- Posts: 25
- Joined: Mon Jan 26, 2015 9:53 am
- Location: Belem - Brazil
- Contact:
Re: HB TIPClientHTTP() Freezes
I am downloading from xHarbour.org, and I get this lib from '2015. Is there any other link?
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: HB TIPClientHTTP() Freezes
Which package do you have downloaded? I just tried to download this:sistemasit wrote:I am downloading from xHarbour.org, and I get this lib from '2015. Is there any other link?
http://www.xharbour.org/files/download/ ... bcc730.zip
and got a new tip.lib.
EMG
Re: HB TIPClientHTTP() Freezes
Tive problemas tambem, então troquei por este:
CursorWait()
cURL := "http://bazevani.com.br/asp/pesquisa.asp?tipo=L&serie=" + _Serie
oHttp := CreateObject("Microsoft.XMLHTTP")
oHttp:Open("GET",cURL,.F.)
lNetError:=.f.
TRY
oHttp:Send()
CATCH oError
lNetError := .T.
END TRY
cHtml := ""
if !lNetError
cHtml := oHttp:ResponseBody
Else
Msgstop("Erro")
endif
CursorWait()
cURL := "http://bazevani.com.br/asp/pesquisa.asp?tipo=L&serie=" + _Serie
oHttp := CreateObject("Microsoft.XMLHTTP")
oHttp:Open("GET",cURL,.F.)
lNetError:=.f.
TRY
oHttp:Send()
CATCH oError
lNetError := .T.
END TRY
cHtml := ""
if !lNetError
cHtml := oHttp:ResponseBody
Else
Msgstop("Erro")
endif