add postdata struct & SetParams method.