Peticiones POST GET

mod_harbour es un módulo para Apache que permite correr tus PRGs directamente en la web!!!

Peticiones POST GET

Postby leandro » Thu Apr 01, 2021 12:22 pm

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

[ Embarcadero C++ 7.60 for Win32 ] [ FiveWin 23.07 ] [ xHarbour 1.3.0 Intl. (SimpLex) (Build 20230914) ]
User avatar
leandro
 
Posts: 1482
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia

Re: Peticiones POST GET

Postby Antonio Linares » Thu Apr 01, 2021 2:14 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41340
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Peticiones POST GET

Postby Otto » Tue Oct 05, 2021 9:26 pm

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
********************************************************************
User avatar
Otto
 
Posts: 6033
Joined: Fri Oct 07, 2005 7:07 pm


Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 1 guest