PDA

View Full Version : Read the source page of url? SOLVED



triperzonak
19th September 2008, 10:44
QT3 code


QUrl url( "http://somethindrx/somethingxdf.cgi?txtYear=2008&txtMonth=09&txtDay=18" );

http->setHost(url.host(),url.port() != -1 ? url.port() : 80);

http->get(url.path() +"?txtYear=2008&txtMonth=09&txtDay=18",file);

//the result is like
/*
<recordset>
<month_of_year>9</month_of_year>
<day_of_month>18</day_of_month>
<hour_of_day>14</hour_of_day>
<min_of_hour>43</min_of_hour>
</recordset>
*/


after using qhttp it works..

it became complicated because of the .cgi that i was accessing is more like an executable which is requiring parameter, after adding the arguments url.path()+"?(argu)"
I finally get it..

thanks..