You are here: Re: [PHP] Re: Sending post data from a script « PHP « IT news, forums, messages
Re: [PHP] Re: Sending post data from a script

Posted by Vedanta Barooah on 08/06/05 04:09

here is an example that posts data to the altavista babelfish form using curl:
http://www.phpclasses.org/browse/file/9812.html
thanks,

--
*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*
Vedanta Barooah

On 8/6/05, Manuel Lemos <mlemos@acm.org> wrote:
> Hello,
>
> on 08/05/2005 04:33 PM Paul Nowosielski said the following:
> > I'm trying to setup a PHP script that will send a POST data request to a
> > web form. The script needs to be automatic and not driven by a web form...
> >
> > For example.
> >
> > I have a cron script that runs every 15 minutes. The cron script calls
> > my php script on the server and sends the important data to a web based
> > form without human interaction. The data has to be passed with the
> > method="post". Sending the data via a URL request does not suffice.
> >
> > So my question in general is: How can I send HTTP POST data to a remote
> > interface without using an HTML FORM?.
>
> You may want to take a look at this HTTP client class. Besides
> submitting POST form values, it also handles redirection and cookies if
> necessary.
>
> http://www.phpclasses.org/httpclient
>
>
> --
>
> Regards,
> Manuel Lemos
>
> PHP Classes - Free ready to use OOP components written in PHP
> http://www.phpclasses.org/
>
> PHP Reviews - Reviews of PHP books and other products
> http://www.phpclasses.org/reviews/
>
> Metastorage - Data object relational mapping layer generator
> http://www.meta-language.net/metastorage.html
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация