Have a small script that I have created which is called via a 3rd party script, it then receives some variables via HTTP POST. I then want to pass some variables via a URL back to a third party script.
I tried using the headers("Location: http://........."); which works perfectly if i call it via the browser, but my problem is that i won't be calling it via the brower.
What command do i use to send the url?
Execute a script via a URL but not from Browser
Moderator: General Moderators
-
jollyjumper
- Forum Contributor
- Posts: 107
- Joined: Sat Jan 25, 2003 11:03 am
Hi,
You could use the file command. eg: file('http://yoururl.com?var=value');
Hope this is what you are looking for.
Greetz Laurens.
You could use the file command. eg: file('http://yoururl.com?var=value');
Hope this is what you are looking for.
Greetz Laurens.
ok i tried this:-
And it did not work! So i tried this:-
And all i got back was:-
If i try this:-
I get:-
How do i rectify this?
Code: Select all
$value = "This is a test";
file('http://yoururl.com?var=$value');Code: Select all
$value = "This is a test";
file("http://yoururl.com?var=$value");Code: Select all
ThisCode: Select all
$value = "This%20is a test";
file("http://yoururl.com?var=$value");Code: Select all
This isCode: Select all
$value = "This is a test";
file("http://yoururl.com?var=".urlencode($value));