Peticiones POST GET

mod_harbour es un módulo para Apache que permite correr tus PRGs directamente en la web!!!
Post Reply
User avatar
leandro
Posts: 1744
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia
Has thanked: 34 times
Been thanked: 10 times
Contact:

Peticiones POST GET

Post by leandro »

Buenos días para todos.

En estos días iniciaré con el aprendizaje en mod_harbour, lo primero que deseo hacer es reemplazar un pequeño web service que tengo montado en php. Me gustaría de momento saber como hago para recibir peticiones de tipo GET, POST las cuales vienen con información de cabecera authorization: Basic y un archivo json adjunto.

De antemano gracias,
Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 24.09 ] [ xHarbour 64 bits) ]
User avatar
Antonio Linares
Site Admin
Posts: 42511
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

Re: Peticiones POST GET

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 22 times
Been thanked: 2 times
Contact:

Re: Peticiones POST GET

Post by Otto »

Hello friends,
maybe someone can help me.

This example works when I call the web service on the modharbour.org server.
But it doesn't work when I put the link on my server.
Do you have to set something on the server so that it is allowed?
Best regards,
Otto



This is not working.
curl_easy_setopt( hCurl, HB_CURLOPT_URL, "https://winhotel.space/samples/webservice.prg" )



This is working fine.
curl_easy_setopt( hCurl, HB_CURLOPT_URL, "http://www.modharbour.org/modharbour_samples/webservice.prg" )
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
Post Reply