• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CFHTTP POST bug? or PHP bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFHTTP POST bug? or PHP bug?


  • Subject: CFHTTP POST bug? or PHP bug?
  • From: "Mark A. Stratman" <email@hidden>
  • Date: Thu, 27 May 2004 04:05:43 -0500

Sending POST requests with CFHTTP functions seems to have a serious problem with PHP - the parameters sent are not recognized. Perl's CGI.pm, on the other hand, can parse them just fine with param();

I've written an HTTP client class that makes use of code nearly identical to the /Developer/Examples/Networking/POST Example/ example, and the problem exists in both.

PHP's $_POST variable isn't seeing the parameters it's getting.
To see what I mean, build the "POST Example" program in Xcode and point it at the following URLs:
http://tg.sporkstorms.org/checkNotify.php (source here: http://tg.sporkstorms.org/checkNotify.phps)
and
http://tg.sporkstorms.org/checkNotify.pl (source here: http://tg.sporkstorms.org/checkNotify.txt)

These are simple PHP and Perl (respectively) scripts that just print out the parameters. Try it with a POST body such as "foo=bar". The Perl program using CGI::param() parses it fine, the PHP and its built-in $_POST does not.

Any ideas? Is this a problem with PHP, or a problem with CFHTTP not being fully compliant, or maybe Apple's example code left some crucial header out (though i checked it with tcpdump, and all looked well)?

Thanks,
- Mark
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: CFHTTP POST bug? or PHP bug?
      • From: Izidor Jerebic <email@hidden>
  • Prev by Date: Multithreading Document Based
  • Next by Date: Re: NSComboBox and bindings
  • Previous by thread: Re: Multithreading Document Based
  • Next by thread: Re: CFHTTP POST bug? or PHP bug?
  • Index(es):
    • Date
    • Thread