Search found 6 matches: owebclient

Return to advanced search

Clase TWebClient: se puede usar un dominio en vez de la IP??

Saludos Gente... por aca jugando con la clase TWebClient veo que funciona perfecto excepto por un pequeño detalle... coloco el nombre del dominio: oWebClient:Connect( "www.guayoyosoft.net" ) pero resulta que ese dominio pertenece a un host virtual contratado... por lo tanto oWebClient:GetPage( ...
by gsabattino
Mon May 07, 2012 12:04 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Clase TWebClient: se puede usar un dominio en vez de la IP??
Replies: 0
Views: 378

Re: http method get

... test" DEFINE BUTTONBAR oBar 3D OF oWnd DEFINE BUTTON OF oBar ACTION WebClient() ACTIVATE WINDOW oWnd return nil function WebClient() local oWebClient,cad, cstring cString:="GET http://condominio.emessage.it/CheckAgent.aspx?Userid=pippo&Password=pluto&Agente=Softwarexp HTTP/1.0"+CHR(13)+CHR(10)+"Host: ...
by Marco Turco
Fri Nov 06, 2009 10:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: http method get
Replies: 6
Views: 994

Window y Dialog

... if nI<>0 .and. nF<>0 cIP:=substr(cIP,nI+3,nF-nI-3) end if end if return cIP static function GetIPWeb(cServer,cWeb,oWnd) local oWebClient oWebClient:=TWebClient():New() oWebClient:Connect(cServer) oWebClient:bOnRead = { |cData| (cTextWeb+=cData,oWnd:end()) } oWebClient:oSocket:SendData( ...
by softruz
Tue Nov 03, 2009 6:54 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Window y Dialog
Replies: 1
Views: 392

Re: Saber IP Pública

Antetodo muchas gracias, pero la esta linea estaba mal el GET funciona así:

oWebClient:oSocket:SendData( "GET /index.html HTTP/1.0" + CRLF +"Host: www.cualesmiip.com"+ CRLF +CRLF )

Un Saludo.
by softruz
Fri Oct 30, 2009 4:39 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Saber IP Pública
Replies: 4
Views: 768

Re: Saber IP Pública

Mas o menos así (no lo he probado) local oWebcliente, cad oWebClient := TWebClient():New() oWebClient:Connect( "www.cualesmiip.com" ) oWebClient:bOnRead = { | cData | cad += cData } oWebClient:oSocket:SendData( "GET http://www.cualesmiip.com/index.html ...
by alvaro533
Fri Oct 30, 2009 1:04 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Saber IP Pública
Replies: 4
Views: 768

Re: TWebClient y servidores de IP compartida (Resuelto)

Lo acabo de encontrar:

oWebClient:oSocket:SendData( "GET /" + cPageName + " HTTP/1.0" + CRLF +"Host: www.hostname.com"+ CRLF +CRLF )

Alvaro
by alvaro533
Fri Oct 16, 2009 10:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TWebClient y servidores de IP compartida (Resuelto)
Replies: 1
Views: 391

Return to advanced search

cron