Try one of the new ones, you can bend the nozzle back and fix to a peg and re-use at a later time/date.
Top TIP dont bother with the cans and straws....Buy a proper foam gun... Only 15notes, uses half as much foam, 50 times more contollable and the foam seems to be stronger/plyable
100x agree. The price has started coming down on those straw cans, but the control is just amazing with the guns versus the cans. It's huge. But you have to get one with a dial on it. Mine was free with the cans, or about £10-15.
As for it getting down the drain, open the u-bend first and have a look for it. A real good look with a torch.
I do A LOT of at home chemistry using things that university staff have to get special paperwork for. I also pour acetone rinses down there quite regularly and have never noticed a problem.
Acetone works great on PVC for cleaning it up. It will get PVC frames looking new with a quick wipe.
There are also foam eaters for dissolving cured foam - toolstation.com carries one of them. I'm not sure what's in those though - haven't checked, yet. It's most likely designed for brick and PVC, so check it against a bit of the pipework before trying that. Anyway, you won't need a foam eater, just poke the big lump out and it'll flow again.
I also haven't checked if strong sulphuric or caustic will dissolved cured foam. Those are the common drain openers. And I've never had the gun near drains, so I don't have any need to check that.
If you're cleaning a gun or can, you need the solvent cans. They're £4-5 a can, but B&Q don't sell them, last time I bothered looking. I found a set of rollers in there today for £8. I'd bought a set that are LITERALLY identical from toolstation.com half an hour before for about £1. That's almost an order of magnitude difference.
For any environmentally conscious members, I can assure you, I don't pour random chemicals down the drain.