Jump to content

[SOLVED] Send GET variables to another site (without going there)


tommyboy123x

Recommended Posts

i need to send multiple (as in hundreds) of get variables to different websites.  I want to send them the data, but I do not want to visit their site / have the browser actually go there.  Would this make any sense / am i on the right track?

 

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.mysite.com/page.php?getvar1=true&getvar2=false");
curl_exec ($ch);

 

or is there an easier way that i'm simply not seeing?

no they would be people who signed up.  i have no control over their scripts or anything... and it would have to be GET, not POST.

 

would it be possible to do it with frames?  have one frame on the script and the other loading the pages?

All i want to do is send URL GET data without going to the site.

 

so, mysite.com wants to inform theirsite.org [and several others] that something has happened.  It uses a cronjob to check every few minutes for this event and then when necessary, it will inform theirsite.org by sending a GET variable (http://theirsite.org/page.php?foo=bar).  but it still has a few more sites to inform.  How can i do this?  I already left mysite.com so the script has terminated.

as promised :)

 

echo '<script type="text/javascript">
function ajaxFunction(){
var ajaxRequest;
try{
	// Opera 8.0+, Firefox, Safari
	ajaxRequest = new XMLHttpRequest();
} catch (e){
	// Internet Explorer Browsers
	try{
		ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try{
			ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (e){
			// Something went wrong
			alert("Your browser broke!");
			return false;
		}
	}
}
ajaxRequest.open("GET", "http://mysite.com/test.php?a=1&b=2", true);
ajaxRequest.send(null);
}
ajaxFunction();
</script>';

 

all i needed it to do was drop off the info and die, so this worked out perfectly.

 

chrisdburns, pls check ur inbox

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.