I am new to xojo and the Curl plugin. I am not getting CURLNMultiMBS to process 4 urls by following the included example. Also the included example seems to process only 2 of 4 urls for me when I remove all other urls in the example. After 2 of the 4 urls, it shows that it is done.
Does anybody has a very basic example about how to process async 4 urls with CURLNMultiMBS for me as a start?
No, it just shows that its done after 2 urls, and does not process all urls fro the list.
For example, I removed all except 4 urls from the array in the example and run it. It processed 2 urls and then stopped and showed that its finished.
I then tried to use just the CURLNMultiMBS, created a class like in the example, and added 2 CURLNMBS via multi.AddCurl(…) and it did not trigger the finish event. I do not really understand fully the example, thats why I asked for a simple basic code which use the CULRNMultiMBS and can process 4 urls async.
I found 1 issue, related to a url. When I use the url http://www,cars.com/ with your example, its stuck and never trigger the finish event. The url redirects to the https site https://www,cars.com/, at least in browser. How can I figure out what the site returns, what header etc., when the finish event is not triggered?
I don’t do much with Internet traffic, but seem to recall a recent posting where the was NOT a true statement, and it had to start as HTTPS or it didn’t work… not to mention not all websites are HTTPS compatible.
And if we set an User-Agent, it seems to load even for cars website:
c.SetOptionHTTPHeader Array("User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15")