Re: HTTP POST from PHP using a link



..oO(Manuel Lemos)

on 01/14/2008 11:39 PM trpost@xxxxxxxxx said the following:

I tried the Class and it looks to be able to send POST data to a page
and request back the results. I am looking to actually goto the page
as if you had clicked on the link. I basically created an app that
sometimes tries to send data to a page that exceeds the max length
allowed in the URL. What are options for getting around that limit. I
could see using a form if I had just one link, but I have hundreds and
can't think of a way to just send the data from the link I click on if
I used a form.

I think the limit is in the browsers, something like 255 characters. So
I think you can submit a GET request using that class to an URL without
that limit.

There are also buffer limits in the web servers. For sending large
amounts of data to a script POST is the correct way.

Micha
.



Relevant Pages

  • Re: FORM data in cgi
    ... to send pre-encoded POST data; you'll have to check that yourself. ... you'll have to do the HTTP request processing by yourself. ... As you describe it, since the data stream in the request body will be exactly the same in both cases (though the HTTP request line and headers will differ) is possible to handle the request by having the CGI script a direct connection to the intended destination server, parsing the incoming headers, generating the outgoing ones, and then just relaying the request body. ...
    (comp.lang.python)
  • Re: [PHP] displaying image from MySQL DB using HTML/PHP
    ... On Tue, March 13, 2007 9:07 pm, Jim Lucas wrote: ... I'm just suggesting that not using REQUEST is not an absolute. ... But if you have a web app that works equally well for other pages to ... link to, or to send POST data to, using REQUEST is quite nice, imho. ...
    (php.general)
  • POST from a CGI
    ... I'm receiving POST data to a CGI, which I'd like to forward to another ... CGI using urllib2. ... getting 400 errors when I try it (server thinks request is malformed). ... I've checked the headers and the body data and they seem normal and I ...
    (comp.lang.python)
  • http request using fsockopen
    ... On the start of page B I check var $foo. ... Sending the POST data also though the POST method. ... I manually create a HTTP request to page C and use the fsockopen method to ...
    (php.general)
  • http request using fsockopen
    ... On the start of page B I check var $foo. ... Sending the POST data also though the POST method. ... I manually create a HTTP request to page C and use the fsockopen method to ...
    (alt.php)