on 10-20-2016 5:54 PM
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?
Roland and René, thanks for your help , this worked. Andrés
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My guess is that it has to do with PB 12.6 being Unicode and PB 9 being Ansi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.