SAX Parser connecting to URL via Proxy

JamesBowen

19+ years progress programming and still learning.
Hi Progress gurus.

I have written a simple SAX reader using the PROGRESS SAX-READER in Progress 10.0B which reads an XML file from a URL (not a file or mempt).

The code works!.:)

However the problem I am having is how do I get the PROGRESS to connect to the URL via proxy?:confused:

I know there are client start up parameters -proxyport & -proxyhost which I think is used as part of webclient. As a long shot I tried that but it did not work.:(

I could also write my own socket program to GET the xml file and save it to disk. But I just can't be bothered to go to that extreme and filtering header information.

Any suggestions.

Thanks.
 
Ok I have thrown my toys out of the pram and stomped my feet. I think I have found a reasonable solution to my own problem.

The solution was to shell out to unix using "Input through value blah blah blah...". Using cURL which looks like it is native to Linux RedHat. Post the URL request via cURL and then get the returned http/xml into a memptr.

Then using the sax-parser, parse the memptr. Job done.
 
Back
Top