Sorry to revive such an old thread, but I'm having this same problem, and I can't quite tell if it was resolved here. I want to be able to update my request.path, and I'm trying to use format() like this...
request.path.format("/weatherstation/updateweatherstation.php?ID=KCADALYC8&dateutc=now&winddir=%d&windspeedmph=%d&windgustmph=%d&softwaretype=vwsversionxx&action=updateraw HTTP/1.1", wind_dir, wind_speed, wind_gust);
But when I print out request.path it appears to be completely empty.
Any tips would be greatly appreciated.