SunQuest
           WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old May 28th, 2006, 08:08 PM
vrspectre's Avatar
vrspectre vrspectre is offline
I see semi-colons
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Location: Portland, OR
Posts: 297 vrspectre User rank is Sergeant (500 - 2000 Reputation Level)vrspectre User rank is Sergeant (500 - 2000 Reputation Level)vrspectre User rank is Sergeant (500 - 2000 Reputation Level)vrspectre User rank is Sergeant (500 - 2000 Reputation Level)vrspectre User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 10 h 38 m 59 sec
Reputation Power: 16
Send a message via AIM to vrspectre Send a message via Yahoo to vrspectre
Unhappy Proxies of death

Having a weird problem w/ T-Mobile proxies I believe.

I have a test site locate here: http://wap.drewpydraws.com/test/

Pretty basic stuff. All it does is display the time. Then when you reload it, it should refresh the time.

Works fine for Sprint and Verizon phones. All t-mobile phones can view it once, but then it takes 10-15 min for it to refresh itself. Hell, I can even delete the file and it will still load the cached version.

I even accessed it once from my phone then used a friends phone and it loaded the cached version of the site. This tells me it's not the browser that is caching it, but some proxy on t-mobiles network. My server log files show no attempt to load the file while it's pulling from the cached state.

I have put it on another server as well, to rull out my primary host, with the same results.

Is there some way I can prevent their proxy from caching my site? Or if not have any of you ever tried to work something like this out with the cell company? I called them, they opened a ticket. I provided all this information to them and they said "it's a 3rd party site and we don't support them."

The problem I'm having is not happening on every 3rd party site. I'm thinking it might have something to do with my site recieving low traffic volume compaired w/ others?


Just incase there is something I've done wrong here's my code.

PHP Code:
<?php
putenv
('TZ=America/Los_Angeles');

header"Content-type: text/vnd.wap.wml" );

 
// Start of deck. First, the XML prologue
echo( "<?xml version=\"1.0\"?>\n" );
echo( 
"<!DOCTYPE wml PUBLIC " );
echo( 
"\"-//WAPFORUM//DTD WML 1.1//EN\" " );
echo( 
"\"http://www.wapforum.org/DTD/wml_1.1.xml\">\n" );

// Now, the deck itself
echo( "<wml>\n" );

// header to force the page to revalidate
echo( "<head>\n" );
echo( 
"<meta forua='true' http-equiv='Cache-Control' content='no-cache'/>\n" );
echo( 
"<meta forua='true' name='application/x-up-cacheop' content='true'/>\n" );
echo( 
"<meta forua='true' http-equiv='Cache-Control' content='max-age=0'/>\n" );
echo( 
"<meta forua='true' http-equiv='Cache-Control' content='must-revalidate'/>\n" );
echo( 
"<meta forua='true' http-equiv='Expires' content='Tue, 01 Jan 1980 1:00:00 GMT'/>\n" );

echo( 
"</head>\n" );

// Start the main index card
echo( "<card id='welcome' title='proxy test view'>\n");
echo( 
"<p>\n");

$time=date('h:i:s A');
echo(
"The current time: $time");
echo(
"<br/><br/>");

echo(
"if you reload the page the time should update. if it does not then it's not loading the page from my website.");
echo( 
"</p>\n");
echo( 
"</card>\n");

echo( 
"</wml>\n");
echo( 
"\n");
?>

Reply With Quote
  #2  
Old May 28th, 2006, 08:29 PM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,667 jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 3 Weeks 4 Days 5 h 1 m 49 sec
Reputation Power: 1618
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
All your stuff between <head></head> is invalid.
Or at least I haven't seen it in the specs anywhere.

You should be specifying you cache settings using header functions before the content is sent to the device....
__________________
Cheers,

Jamie


# skiFFie | Home of the 'accessibility module' for Drupal
# Jamie Burns [me] Accessibility Module [drupal]
# guidelines | search | wap resources | not getting help | fold to cure

# Any form of employment is strictly prohibited ......


__________________

Let the might of your compassion arise to bring a quick end
to the flowing stream of the blood and tears .....
Please hear my anguished words of truth.

__________________

Reply With Quote
  #3  
Old May 31st, 2006, 05:42 PM
vrspectre's Avatar
vrspectre vrspectre is offline
I see semi-colons
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Location: Portland, OR
Posts: 297 vrspectre User rank is Sergeant (500 - 2000 Reputation Level)vrspectre User rank is Sergeant (500 - 2000 Reputation Level)vrspectre User rank is Sergeant (500 - 2000 Reputation Level)vrspectre User rank is Sergeant (500 - 2000 Reputation Level)vrspectre User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 10 h 38 m 59 sec
Reputation Power: 16
Send a message via AIM to vrspectre Send a message via Yahoo to vrspectre
Thanks.

It works fine now. And I was so sure I was doing it right. Good grief.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > Proxies of death


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway