Did you send the http request after the socket connection has been established ? Did you check on server side for arrived http request from modem ? Can you capture data sent on serial line and present them here ?
Did you try in this way : **broken link removed** **broken link removed**
I have read both the articles. I also did manage to communicate with a slef-made server (using winsock.dll in VB6) on another real IP and the data sending/receiveing over TCP socket is working OK. THe problem is that I cannot download an HTTP file from a standard web-server.
My question now is this. What is the difference between a TCP server listening on a port and a standard web-server listening on port 80. The socket connection in both cases is established OK by the M22. But in case of a web-server, there is no response when I send the standard HTTP GET command set composing of a few lines and carraige returns.
What you mean by tcp server ? Which port to use is not an issue i think. If server uses different than 80 port it means you should establish connection to that port . In software the server asks tcp to forward packets when port is its own .
that means it is concluded with CR and LF both . Do use just CR ?
DO you have an example captured data for request from browser and did you trace arrived packet from your mobile to the server if so did you match the request made from browser to one you send from modem?
Added after 2 minutes:
you can use etherial to capture packets on your server PC .
That is a good idea artem. I shall try using a CR+LF. You are right that I was using CR only. Maybe that is the problem. I will try tomorrow morning and let you know. Thanks again.
I have used ethereal before. It is an excellent tool for this purpose. The problem is that I dont have access to the server since it resides with the ISP. But I am sure your idea of CRLF would work. I am pretty sure that was the problem.
Try to connect to a working server, preferrably a web server that is up and running. Connect to this using standard port 80. Sometimes some service providers block all ports on GPRS except 9201, 8080 and the standard HTTP, FTP, POP3, SMTP etc. Since you are using port 1300, that may be blocked.