POSTing without a form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

maniac9
Forum Commoner
Posts: 55
Joined: Fri Aug 01, 2003 12:27 am
Location: Arkansas, USA
Contact:

Post by maniac9 »

well, sessions would work, but, the calling script maybe on another server and in a completely different language (asp or perl)
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post 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.
hedge
Forum Contributor
Posts: 234
Joined: Fri Aug 30, 2002 10:19 am
Location: Calgary, AB, Canada

Post 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.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post 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
Post Reply