ENC28J60 Problem with web service

Hi Everybody

please help

i am trying to use arduino Pro mini with ENC28j60 to get data from my local web service

the URL i used to get the data is (http://192.168.1.5:801/m/Service1.asmx/HelloWorld?tag=01)

when i use this URL in browser it return this result

peter danile,1234567

with arduino

i use this code but i can’t get a result

// Demo using DHCP and DNS to perform a web client request.
// 2011-06-08 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php

#include <EtherCard.h>

// ethernet interface mac address, must be unique on the LAN
static byte mymac[] = { 0x74,0x69,0x69,0x2D,0x30,0x31 };

byte Ethernet::buffer[700];
static uint32_t timer;

const char website[] PROGMEM = "192.168.1.5";
//char website[] PROGMEM = "google.com";

// called when the client request is complete
static void my_callback (byte status, word off, word len) {
 Serial.println(">>>");
 Ethernet::buffer[off+300] = 0;
 Serial.print((const char*) Ethernet::buffer + off);
 Serial.println("...");
}

void setup () {
 Serial.begin(57600);
 Serial.println("\n[webClient]");

 if (ether.begin(sizeof Ethernet::buffer, mymac) == 0) 
   Serial.println( "Failed to access Ethernet controller");
 if (!ether.dhcpSetup())
   Serial.println("DHCP failed");

 ether.printIp("IP:  ", ether.myip);
 ether.printIp("GW:  ", ether.gwip);  
 ether.printIp("DNS: ", ether.dnsip);  

 if (!ether.dnsLookup(website))
   Serial.println("DNS failed");
   
 ether.printIp("SRV: ", ether.hisip);
}

void loop () {
 ether.packetLoop(ether.packetReceive());
 
 if (millis() > timer) {
   timer = millis() + 5000;
   Serial.println();
   Serial.println(PSTR("/m/Service1.asmx/HelloWorld?"));
   Serial.print("<<< REQ ");
   ether.hisport = 801;//to access  local host
   ether.browseUrl(PSTR("/m/Service1.asmx/HelloWorld?"), "tag=01", website, my_callback);
 }
}

Thanks

You really should have read the How to use this forum - please read post at the top of the index page and How to use this forum before posting.

ie Your code and any error messages should always be placed between code tags. Posting it inline as you have done makes it much harder to read or copy and paste for diagnosis.

It's still not too late to edit your post and do this. You'll make potential helpers much happier. :)

OldSteve:
You really should have read the How to use this forum - please read post at the top of the index page and How to use this forum before posting.

ie Your code and any error messages should always be placed between code tags. Posting it inline as you have done makes it much harder to read or copy and paste for diagnosis.

It’s still not too late to edit your post and do this. You’ll make potential helpers much happier. :slight_smile:

Thanks OldSteve

That's better. Thank you. I had a look and can't help with your problem, but it'll be easier for someone more familiar with the ENC28j60 to help you now. Good luck. :)