Re: HTTP POST from PHP using a link



Hello,

on 01/14/2008 07:57 PM trpost@xxxxxxxxx said the following:
I am looking for a way to send data from one page to another as POST
data without using forms or cURL.

I have a php script that is passing a list of cases from on page to
another when a link is clicked. This is working fine for the most part
as a link, but sometimes the list gets very large and gets cut off.
The reason it gets cut off appears to be a limitation on the amount of
data that can be passesd in the URI.

It looks like I can do this with cURL, but this script will run on
several servers that do not have cURL compiled in and I do not want to
recompile now.

I found a few posts that say this can be done with PHP and javascript,
but I found no good examples.

To give you an example on what I am doing:
<a href=case_details.php?cases=".$allCases."&priority=Low&PG=All>
$count</a>

$allCases is a comma separated list of numbers and can get very large.
i.e. 84638,48957,58945,45375,....

You can try this HTTP client class. It can perform arbitrary HTTP
requests without using Curl:

http://www.phpclasses.org/httpclient


--

Regards,
Manuel Lemos

PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
.



Relevant Pages

  • Re: Automated web browing
    ... cURL will allow you to get or post to pages, ... I wonder which HTTP client you are talking about. ... as I mentioned above the HTTP client class uses curl library ... functions for SSL if you are running an older version than PHP 4.3.0. ...
    (comp.lang.php)
  • Re: Automated web browing
    ... as I mentioned above the HTTP client class uses curl library ... From PHP 4.3.0 with OpenSSL enabled it uses PHP fsockopen, fread, fwrite ... Which means it has move overhead than using cURL directly. ... Curl in small chunks at a time without having to use callbacks. ...
    (comp.lang.php)
  • Re: Automated web browing
    ... cURL will allow you to get or post to pages, ... much prefer it over the HTTPClient class. ... as I mentioned above the HTTP client class uses curl library ... functions for SSL if you are running an older version than PHP 4.3.0. ...
    (comp.lang.php)
  • Re: HELP: strange php behavior downloading html
    ... problem in less than an hour, using cURL with PHP. ... Here is the function I wrote to download a uri into a file (following ... all redirects, ignoring old cookies, and passing set cookies to redirects): ...
    (comp.lang.php)
  • Re: HTTP POST from PHP using a link
    ... I have a php script that is passing a list of cases from on page to ... It looks like I can do this with cURL, but this script will run on ... I found a few posts that say this can be done with PHP and javascript, ...
    (comp.lang.php)