Re: Calling IE for a form POST
| From: | Scott Mattocks | Date: | Tue, 19 Jul 2005 18:37:11 +0000 |
| Subject: | Re: Calling IE for a form POST | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6074@lists.php.net to get a copy of this message | ||
Sorry if I missed anything but why do you need a browser to submit the form data? You can do this with PHP and avoid the browser all together. Take a look at PEAR::HTTP_Request (http://pear.php.net/manual/en/package.http.http-request.intro.php)
Scott
Benjamin Smith wrote:
Nope. Never did. I've asked the list several times - I guess nobody has figured out how to use COM to get IE to submit a form post to an arbitrary web address. After lots of googling, I dug up some obscure references about passing in arrays one character at a time when using .NET/ASP, but I never got it to work in PHP/GTK. I ended up wrapping the call to IE in a function with passed in parameters, and am now using HTTP GET. It's lousy, limited to 1024 characters, and somewhat insecure, but works for now until I can figure out how to get IE to do a post via COM. (Or, I work out a form post method that's browser-agnostic so that I can use Moz/Konqi/IE/Safari depending on the platform) -Ben On Tuesday 19 July 2005 09:43, you wrote:-- Scott Mattocks scott@crisscott.com http://www.crisscott.com http://pear.php.net/user/scottmattocksBen, I apologize for writing directly to you if it is an offense. I was tryingto accomplish what you have already worked on and did not know if you found a solution. If you did would you be kind enough to provide an example or link to the info?Thanks for your time, Jon Aston