1. I have the main application in legacy (clarion 6.3) and i need that application to send URL code by POST method from NET.TALK.
2. I have managed to make it work by clicking on a button that calls routine that does the POST but when I wanna use it without the button it doesn't work.
I have been trying to make this thing work for a while now...
Here is the example of the code in rotine. When i call it by pressing a button it works but calling the routine from other place in code doesnt work.
URL = 'postanjeURL routine
ThisWebClient.SetAllHeadersDefault()
ThisWebClient.HeaderOnly = 0
ThisWebClient.Cookie = '' !Cookie
ThisWebClient.Referer = '' !Referer
ThisWebClient.ContentType = 'application/x- ThisWebClient.AcceptEncoding = ''
ThisWebClient.CanUseProxy = 1 !CanUseProxy
ThisWebClient.ContentLength = 0 !len(clip(PostString))
ThisWebClient.Pragma_ = 'no-cache'
ThisWebClient.AsyncOpenUse = 1
ThisWebClient.AsyncOpenTimeOut = 1200
ThisWebClient.InActiveTimeout = 2000
ThisWebClient.ContentLength = len (clip(URL))
ThisWebClient.Post(URL,'')
2. I have managed to make it work by clicking on a button that calls routine that does the POST but when I wanna use it without the button it doesn't work.
I have been trying to make this thing work for a while now...
Here is the example of the code in rotine. When i call it by pressing a button it works but calling the routine from other place in code doesnt work.
URL = 'postanjeURL routine
ThisWebClient.SetAllHeadersDefault()
ThisWebClient.HeaderOnly = 0
ThisWebClient.Cookie = '' !Cookie
ThisWebClient.Referer = '' !Referer
ThisWebClient.ContentType = 'application/x- ThisWebClient.AcceptEncoding = ''
ThisWebClient.CanUseProxy = 1 !CanUseProxy
ThisWebClient.ContentLength = 0 !len(clip(PostString))
ThisWebClient.Pragma_ = 'no-cache'
ThisWebClient.AsyncOpenUse = 1
ThisWebClient.AsyncOpenTimeOut = 1200
ThisWebClient.InActiveTimeout = 2000
ThisWebClient.ContentLength = len (clip(URL))
ThisWebClient.Post(URL,'')