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,
Peticiones POST GET
Peticiones POST GET
Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
[email protected]
[email protected]
[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
[email protected]
[email protected]
[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]
- Antonio Linares
- Site Admin
- Posts: 44515
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Peticiones POST GET
Leandro,
Ejemplo de webservice simple usando mod_harbour:
https://github.com/FiveTechSoft/mod_harbour/blob/master/samples/webservice.prg
Usando el webservice anterior desde mod_harbour:
https://github.com/FiveTechSoft/mod_harbour/blob/master/samples/callwebservice.prg
Ejemplo de webservice simple usando mod_harbour:
https://github.com/FiveTechSoft/mod_harbour/blob/master/samples/webservice.prg
Usando el webservice anterior desde mod_harbour:
https://github.com/FiveTechSoft/mod_harbour/blob/master/samples/callwebservice.prg
Re: Peticiones POST GET
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" )
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" )