change website value from setup on EtherCard

Hi.. I'm using the ethercard librtary that comes with google.com as default.
I really need to change the website[] variable address that currently is outside setup.

Could anyone give me some idea about how to set the website variable inside setup?

// 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 = "www.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(F("\n[webClient]"));

	if (ether.begin(sizeof Ethernet::buffer, mymac) == 0)
		Serial.println(F("Failed to access Ethernet controller"));
	if (!ether.dhcpSetup())
		Serial.println(F("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.print("<<< REQ ");
		ether.browseUrl(PSTR("/foo/"), "bar", website, my_callback);
	}
}

Remove the const from the website[] declaration, take it out of PROGMEM and allocate enough string space to accept the longest URL that you will use.

Hi there.

I have tried that before and didn't work.

It compiles and uploads right but just doesn't work.

Is there a chance of library that NEEDs the variable to be at PROGMEM?

Tks a lot

Is there a chance of library that NEEDs the variable to be at PROGMEM?

Yes. But, the stupid library CAN be fixed.