The following compares two files with diff using process substitution instead of creating temporary files.
diff
diff <(curl http://www.example.com/page1) <(curl http://www.example.com/page2)