ERROR DE CONECCION A INTERNET

HMG en Español

Moderator: Rathinagiri

Post Reply
User avatar
vientopamperosur
Posts: 59
Joined: Thu Aug 28, 2014 10:13 am
DBs Used: DBF, SQLite, MySQL, MariaDB, PostgreSQL
Location: Buenos Aires
Contact:

ERROR DE CONECCION A INTERNET

Post by vientopamperosur »

Hole a todos. les pido ayuda con respecto a un problema que no puedo resolver. tengo unas lineas de programa que validan un objeto y si no estoy conectado a internet se me cuelga.

Ej:

oWSAA := Win_OleCreateObject( 'MSXML2.XMLHTTP' )

oWSAA:OPEN( 'POST', cWSAA_URL, .F. )
oWSAA:setRequestHeader( "SOAPAction:", "None" )
oWSAA:setRequestHeader( "Content-Type", "text/xml;charset=UTF-8" )


oWSAA:SEND( cXml ) -------------------> ACA SE CUELGA SI NO ESTOY CONECTADO A INTERNET O A VECES SI DEL OTRO LADONO HAY RESPUESTA.

DESDE YA GRACIAS POR SU AYUDA. Les dejo una imagen del error.
Attachments
error coneccion.jpg
error coneccion.jpg (38.34 KiB) Viewed 1950 times
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: ERROR DE CONECCION A INTERNET

Post by andyglezl »

Hola

Tendrías que validar antes del "oWSAA:SEND( cXml )" que tengas conexion a internet, sino enviar un mensaje y hacer re-intentos.
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: ERROR DE CONECCION A INTERNET

Post by danielmaximiliano »

intenta subir un ejemplo completo sobre MSXML2.XMLHTTP para poder ayudarte mejor y reproducir el ambiente de trabajo

aqui se hicieron varios ejemplos sobre comexion a internet y mail a pedido de algun integrante que tenia la necesidad de ello.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Post Reply