Subject Postman vs Jquery
From Osvaldo Ramirez <ramirezosvaldo@yahoo.com>
Date Fri, 6 Aug 2021 00:21:56 -0600
Newsgroups xb2net

Hello Boris

I am sorry, I will try to explain myself.

I am testing an "script" . prg,  via postman and It work fine.

But when I try with firefox dont ?

For example: I sent this from postman :

  http://10.1.7.3:8080/prg/facturaticket.prg, POST, {
     "rfc": "RAOS730225U80",
     "nombre": "OSVALDO RAMIREZ",
     "sucursal": 1,
     "tck": 59874,
     "fechatck": "20210802",
     "email": "ramirezosvaldo@yahoo.com",
     "codigoverificacion": "755668C",
     "usoen": "G03 - Gastos Generales",
     "formadepago" : "01 - Tarjeta de credito"}

And inside of the webserve.exe the httprequest:content look good
and inside of the facturaticket.prg, the httprequest:content is has the
same value that I sent to it.

But if If I call my script :

$.ajax({
             type: "POST",
             url: 'http://10.1.7.3:8080/prg/facturaticket.prg',
             dataType: 'json',
             contentType: "application/json",
             data: JSON.stringify({
     "rfc": "RAOS730225U80",
     "nombre": "OSVALDO RAMIREZ",
     "sucursal": 1,
     "tck": 59874,
     "fechatck": "20210802",
     "email": "ramirezosvaldo@yahoo.com",
     "codigoverificacion": "755668C",
     "usoen": "G03 - Gastos Generales",
     "formadepago" : "01 - Tarjeta de credito"}),

Inside of the webserve.exe I can see the same value with
httprequest:content, but inside of my facturaticket.prg, the
httprequest:content showme "xbform",

And I dont know if is problem from the client side or server side.

Thanks a lot in advance.

Best Regards
Osvaldo Ramirez


Recent messages in this thread
 
-# Postman vs Jquery (Current message) Osvaldo Ramirez 06-Aug-2021 02:21 am
.-# Re: Postman vs Jquery Osvaldo Ramirez 06-Aug-2021 03:20 pm
..-# Re: Postman vs Jquery Osvaldo Ramirez 06-Aug-2021 03:37 pm
...-# Re: Postman vs Jquery Boris Borzic <.> 08-Aug-2021 10:52 am
....\# Re: Postman vs Jquery Osvaldo Ramirez 10-Aug-2021 12:59 pm