Jump to content


Photo

Sending POST data without using a form


  • Please log in to reply
2 replies to this topic

#1 Vinze

Vinze
  • Members
  • PipPipPip
  • Advanced Member
  • 80 posts

Posted 10 July 2006 - 05:14 PM

Hey, I was wondering whether there was a way to send POST data without using a form.

I found this but it involves using fputs() (which is an alias of fwrite()) which of course needs write permission.

Any thoughts?
WTH? I became a guru by asking questions!

#2 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 10 July 2006 - 05:17 PM

The fputs() in the example referenced is not writing to a file, but is writing to a TCP/IP socket.  You can also look at the CURL functions.

Ken

#3 Vinze

Vinze
  • Members
  • PipPipPip
  • Advanced Member
  • 80 posts

Posted 10 July 2006 - 05:27 PM

But the PHP manual says it's an alias of fwrite(), which is

Binary-safe file write


WTH? I became a guru by asking questions!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users