Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NET.TALK (again)

Status
Not open for further replies.

Igor1234

Programmer
Apr 5, 2011
6
HR
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,'')
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top