I need to check the functionality on how the stats of my moodle site are posted to moodle.org
When you go to register you Moodle site, what URL is in your web browser? That is the script to look at.
I got that, its a straight forward form submission to moodle.org.
What I need to know is how moodle.org extracts other stats data from my site.
It doesn't. Look at the form that is submitted to Moodle.org. It contains all the status like number of students/teachers/courses.
The only other thing Moodle.org does is that to validate the registration, it does try to request the front page of your moodle site. So, if you register http://mymoodle.example.com/ then moodle.org has a script that requests that page, and checks that it looks like a Moodle site.
This is explained a bit more at the end of Usage.
Ok, thank you.