Page 2 of 2

Posted: Wed Nov 12, 2003 2:52 pm
by maniac9
well, sessions would work, but, the calling script maybe on another server and in a completely different language (asp or perl)

Posted: Wed Nov 12, 2003 6:11 pm
by JAM
Aha, sessions would be a hazzle then...

I thought of another thing, and that is by using [php_man]header[/php_man]()'s. How, I'm not entirely sure, but I saw these headers flying by when testing a post on the local server:

Code: Select all

Content-Type: application/x-www-form-urlencoded
Content-Length: 7
 |_foo=bar
Perhaps that is an option.

Posted: Wed Nov 12, 2003 8:13 pm
by hedge
JAM wrote:Aha, sessions would be a hazzle then...

I thought of another thing, and that is by using [php_man]header[/php_man]()'s. How, I'm not entirely sure, but I saw these headers flying by when testing a post on the local server:

Code: Select all

Content-Type: application/x-www-form-urlencoded
Content-Length: 7
 |_foo=bar
Perhaps that is an option.
You can't send a POST request with header, that's why you have to talk raw http yourself using sockets. The link I posted earlier shows an example.

I needed this functionality so that I could retrieve content from an internal site running ASP and display it on the public site.

Posted: Thu Nov 13, 2003 11:36 am
by JAM
Yes, badly written of me. I was referring to the headers (not really the function)...
Might be interesting;
http://sourceforge.net/projects/snoopy/
http://forums.devshed.com/t33442/s.html