[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with HTTP API



Hi listers,
 
I' using the Scott's HTTP API to consum a webservice built in .NET with a very good success, and now it is in produccion,
orking very fine, Today I was asked to try with another one, built with Genexus , but when I try to call it with the POST I got the following error: 
              The data at the root level is invalid. Line 1, position
 
here is my POST
eval      rc=http_url_post(

'http://150.150.60.42'+

'/aretornarem.aspx'+

'/Execute'

: data

: size

: '/tmp/httptest.html'

: HTTP_T

          : HTTP_TIMEOUT

: HTTP_USERAGENT

: 'application/x-www-form-urlencoded')
 
the other question is what PROC do I have to use is I need to send in the post an Integer value and not an string value, like this:
c                   callp     http_url_encoder_addvar_s(  
c                                Enc  : 'iCustomerNumber':
c                                1234)    
 
Thanks.
 
Jeff Talavera