Recent Widgets


Register for DashboardWidgets

Recent Forums Posts

Partners


iCompositions

MacDesktops.net

RSS Showcase
RSS Comments
RSS Forums

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. Posted in: Widget Central

Referring URLs

Author Message
andrethegiant



Joined: 08 May 2005
Posts: 78

Posted: Sat Jul 16, 2005 - 12:01 pm    Post subject: Referring URLs Reply with quote

Anyone know how to send a referring URL in a widget? I'm using xmlhttprequest with post data to get content from a website, but the website only allows data from the referring URL to make a query. Any ideas?
View user's profile Send private message Send e-mail Widgets
Chris



Joined: 27 Jan 2005
Posts: 344
Location: Durham, UK

Posted: Sat Jul 16, 2005 - 12:30 pm    Post subject: Reply with quote

Send a referer header, presumably. e.g.

Code:

var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", "http://www.wherever.com/feed.xml", true); xmlhttp.setRequestHeader("Referer: http://www.wherever.com");


I've never tried it, but I assume it'll work.
View user's profile Send private message Send e-mail Visit poster's website AIM Address Widgets
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

 
Powered by phpBB © 2001, 2002 phpBB Group