The vast majority of pilots would be happy to oblige with both requests, with the length of flight deck visit being dictated by length of turnaround, or whether the crew have finished their flying for the day.
There are however, as in any job, a number of miserable farts who simply wish to be unhelpful and anti-social.