ENC28J60 interfacing using EtherCard.h

Hello all,

I don't have much deep knowledge in TCP/IP protocols and its communication methods. I hope I wrote functions for control registers and buffer registers(read and write) my self. With the help of datasheet I wrote initialization too. I checked reading and writing registers. I hope initialization is also correct. I tried a lot to understand how to access a website and retrieving a data from it. Then I got the EtherCard.h library. The example "backsoon" works fine and I checked it. But when I checked the example "webClient", I got the below reply

[webClient]
IP: 202.83.59.176
GW: 202.83.59.129
DNS: 202.88.238.3
SRV: 216.58.196.100

<<< REQ >>>
HTTP/1.1 302 Moved Temporarily
Server: nginx/1.2.1
Date: Sun, 28 Jun 2015 19:12:12 GMT
Content-Type: text/html
Content-Length: 160
Connection: close
Location: https://mwcp-spg-04.adlkerala.com:8001/

302 Found

302 Found...

Please help.

Thanks in advance.....

Am I posted in wrong section? Someone please help. Actually this thing can change my life.

Hello all,

I got some basics. I would like to know a couple of things about ether.browseUrl().

ether.browseUrl(PSTR("/info.html"),"",website,browseUrlCallback1);
while(1)
        ether.packetLoop(ether.packetReceive();

I am using the above code in order to retrive a query. But I am not getting full info. I need to know when will the browseUrlCallback1 function will be called. I dont know when it is called. I need to get remaining details from the webpage. What I have to do.

Expecting reply to this post.

THANKS for any reply in advance :slight_smile: