cancel
Showing results for 
Search instead for 
Did you mean: 

PostURL from PowerBuilder 9 to 12.6

Former Member
0 Kudos

We have an ASP service from an external provider of our application running in PowerBuilder 9, we invoke this service as well:

inet linet_main

n_cst_internet luo_data

...

ls_url=http://10.0.0.21/samweb.asp?

lblb_args=blob("banco=0045&producto=20&token=Cod_Oper=090|Banco=0045|Sucursal=0500|Fecha_neg=20151124|UsuarioBD=IJQQQQQQQQQQQQQQQQQQ|PwdBD=IJQQQQQQQQQQQQQQQQQQ|Cod_Barras=017694667802006051800000035109|Adicional=")

ls_headers= "Content-Type:application/x-www-form-urlencoded~n Content-Length: " + String( ll_length ) + "~n~n"

...

ll_ret = linet_main.PostURL(ls_url,lblb_args,ls_headers,ll_puerto,luo_data)

We migrated the application to PowerBuilder 12.6, and now returns: -6 Internet request failed


What could be the problem?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Roland and René, thanks for your help , this worked. Andrés

Former Member
0 Kudos

Yes, encoding may be the reason.

The Blob() function has an optional second parameter to specify the encoding. Default is EncodingUTF16LE!. It may be your ASP service may not handle the encoding or the specified Content-Length (ll_length) is not correct because of the different encoding.

Try Blob ("...", EncodingAnsi!)

Former Member
0 Kudos

My guess is that it has to do with PB 12.6 being Unicode and PB 9 being Ansi.