Use CURL (Client URL Library) functions. It's a little clumsy, but it lets you execute whatever GETs and POSTs you want under script control.