Hi, i am a new user of Fastrack Supreme 20 and i have some problem in using it. my intention is to get a data from the web site that i made using GPRS connection and send the data to another device via serial port. my application has accessed the gprs network and i could send the ICMP packet (ping function) to google.com, yahoo.com, my website and another public web. But there is some problem when i tried to access the data that i want. what i wrote in my application was like this
case WIP_CEV_WRITE: //Triggered when the writing process to the adl_atSendResponse (ADL_AT_UNS,"\r\ninside the WIP_CEV_WRITE\r\n"); //channel is completed Write = wip_write(Channel, "GET /index.php HTTP/1.1\r\n",26); //Saving the data into the Write buffer wm_itoa (Write,writeBuffer); //Convert the return value of the writing process into ascii adl_atSendResponse (ADL_AT_UNS,writeBuffer); //Send the return value into Hyper Terminal adl_atSendResponse (ADL_AT_UNS,"\r\n"); break;
But the result that i get from writing this request is BAD REQUEST ERROR (400) page. FYI i made my web using a free public web hosting. so i could only accessed port 80. what should i do then to make my application could access the web site? i thank you for your time and helpful advices.