??? 03/06/08 07:29 Read: times Msg Score: 0 -1 Provacative/Troll +1 Underrated |
#151941 - Have you studied that Tutorial yet? Responding to: ???'s previous message |
Karandeep Singh said:
Firstof all i open a socket by socketno= mn_open(ip_dest_addr,DEST_PORT,SRC_PORT,active open, protocol_type,*rcv_data,rcv_len);socket contection is made succesfully Presumably, the "mn_" prefix shows that you're using CMX Micronet (or the free version from SiLabs) - yes? Doesn't CMX give you an API for issuing HTTP requests? this packet is also send to the PC ,i checked it by ETHER DETECT software It may be sent to the PC, but surely the URL http://www.google.co.in/ isn't on your PC, is it?! You're not hosting Google for the whole of India, are you?! does the http request header is sufficent to get the responce No, what you've shown is not sufficient as an HTTP GET request - study that tutorial carefully! In particular, look at the Sample HTTP Exchange and pay attention to the explanatory notes... Do as the author says: James Marshall said:
To familiarize yourself with requests and responses, manually experiment with HTTP using telnet.
http://www.jmarshall.com/easy/http/ You also need to have a copy of the HTTP specification to hand: RFC2616: Hypertext Transfer Protocol -- HTTP/1.1 As an HTML web page: http://www.w3.org/Protocols/rfc2616/rfc2616.html As a PDF download: http://www.w3.org/Protocols/HTTP/1.1/rfc2616.pdf |