HTTP/1.1 302 Found

Help
2009-02-25
2013-06-06
  • Deepak Anand
    Deepak Anand
    2009-02-25

    Hello,

    I get the above mentioned error. I have copied the request and response below:
    Can someone kindly help me figure out what the problem is ?

    Request

    POST /foo/bar/wsserver.php HTTP/1.0
    Host: foo.bar.edu
    User-Agent: NuSOAP/0.7.3 (1.114)
    Content-Type: text/xml; charset=ISO-8859-1
    SOAPAction: "http://xyz.abc.edu/foo/bar/wsserver.php/Browse"
    Content-Length: 534

    <?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="www.qwerty.edu/"><SOAP-ENV:Body><tns:Browse xmlns:tns="www.querty.edu/"><qstr xsi:type="xsd:string">&lt;key&gt;&lt;/key&gt;</qstr></tns:Browse></SOAP-ENV:Body></SOAP-ENV:Envelope>

    Response

    HTTP/1.1 302 Found
    Date: Wed, 25 Feb 2009 00:26:24 GMT
    Server: Apache
    Set-Cookie: PHPSESSID=hj5i98n467gc4fqmh5kmggh007; path=/
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Location: ?
    Content-Length: 0
    Connection: close
    Content-Type: text/xml

     
    • Deepak Anand
      Deepak Anand
      2009-03-05

      Hello,

      This was happening because of a prepared function I was using to execute a select statement which internally redirected on an sql statment error,
      i.e. the function was something like this:

      function real_execute_query( $query, $db_conn )
      {
          global $_err_fatal;
          global $_err_page;
          real_reset_error();
          $result = mysql_query( $query, $db_conn );
          $error_msg = mysql_error( $db_conn ) ;
          if( $error_msg != "" )
          {
              real_log_error( $db_conn, $error_msg, $query );
              real_set_error( $_err_fatal );
              real_redirect_onerror( $_err_page, "", $db_conn);
          }
          return $result;
      }

      I was using it like this:

      $get_people_contact_results = real_execute_query( $get_people_contact_query, $db_conn );