Bitcoin Forum
April 30, 2017, 11:09:34 AM *
News: Latest stable version of Bitcoin Core: 0.14.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Using bitcoinnotify.com - cannot get POST data.  (Read 1017 times)
wildboy211
Sr. Member
****
Offline Offline

Activity: 294


View Profile
September 13, 2011, 07:33:48 AM
 #1

Im using a test event to send a HTTP Post request to my server, but when i trigger the event, nothing shows up, im using simple PHP coding:
print_r($_POST);

And all im getting is:
Array ( )

And im refreshing multiple times after trigger. Am i doing it wrong or anyone have any idea what the problem could be?
1493550574
Hero Member
*
Offline Offline

Posts: 1493550574

View Profile Personal Message (Offline)

Ignore
1493550574
Reply with quote  #2

1493550574
Report to moderator
1493550574
Hero Member
*
Offline Offline

Posts: 1493550574

View Profile Personal Message (Offline)

Ignore
1493550574
Reply with quote  #2

1493550574
Report to moderator
1493550574
Hero Member
*
Offline Offline

Posts: 1493550574

View Profile Personal Message (Offline)

Ignore
1493550574
Reply with quote  #2

1493550574
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin-Qt, but full nodes are more resource-heavy, and they must do a lengthy initial syncing process. As a result, lightweight clients with somewhat less security are commonly used.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1493550574
Hero Member
*
Offline Offline

Posts: 1493550574

View Profile Personal Message (Offline)

Ignore
1493550574
Reply with quote  #2

1493550574
Report to moderator
1493550574
Hero Member
*
Offline Offline

Posts: 1493550574

View Profile Personal Message (Offline)

Ignore
1493550574
Reply with quote  #2

1493550574
Report to moderator
BitcoinNotify.com
Jr. Member
*
Offline Offline

Activity: 58


View Profile
September 13, 2011, 08:10:34 AM
 #2

I have manually POST-ed your URL with an independent tool - cREST client plugin for Chrome - and the result is the same "Array ( )", which means there is something wrong with your server configuration or PHP script.

Random ideas:

1) As far as I know the $_POST is deprecated in PHP. Perhaps try a more recent function?

2) Remember that with POST, parameters are sent in the HTTP request body, not in the URL (just in case this matters).
wildboy211
Sr. Member
****
Offline Offline

Activity: 294


View Profile
September 14, 2011, 04:16:21 AM
 #3

I have manually POST-ed your URL with an independent tool - cREST client plugin for Chrome - and the result is the same "Array ( )", which means there is something wrong with your server configuration or PHP script.

Random ideas:

1) As far as I know the $_POST is deprecated in PHP. Perhaps try a more recent function?

2) Remember that with POST, parameters are sent in the HTTP request body, not in the URL (just in case this matters).

I am trying this with another host, and when i sent the information from a test page with a simple hidden object and a submit button, the post data transfered over. But when i try it with the chrome plugin or bitcoinnotify i get nothing. The PHPccode im using now is:
<?
print $_REQUEST["type"];
?>

And this isnt my first PHP page either...im totally baffled on why this isnt working.
hamburger
Full Member
***
Offline Offline

Activity: 133



View Profile
September 14, 2011, 08:47:46 AM
 #4

I hate it when people refer to other posts so I'll help you here.

First create a file output.txt and chmod it 777
Now, create a file test.php and past this code in it;

Code:
<?php

    $output 
file_get_contents('php://input');

    
$fp=fopen($tmp_path."output.txt","a");
    if(
$fp) {
      if(
flock($fp,LOCK_EX)) {
        
fwrite($fp,$output."\n");
        
flock($fp,LOCK_UN);
      }
      
fclose($fp);
    }

?>


Go to http://www.bitcoinpayflow.com/test_pn and enter http://www.yourdomain.com/test.php then click on Test.

If all went well, you should see on the screen what was send to test.php

Wait some time - the server is a bit slow.

Check your output.txt file for the result.

Hamburger
wildboy211
Sr. Member
****
Offline Offline

Activity: 294


View Profile
September 14, 2011, 01:15:36 PM
 #5

I hate it when people refer to other posts so I'll help you here.

First create a file output.txt and chmod it 777
Now, create a file test.php and past this code in it;

Code:
<?php

    $output 
file_get_contents('php://input');

    
$fp=fopen($tmp_path."output.txt","a");
    if(
$fp) {
      if(
flock($fp,LOCK_EX)) {
        
fwrite($fp,$output."\n");
        
flock($fp,LOCK_UN);
      }
      
fclose($fp);
    }

?>


Go to http://www.bitcoinpayflow.com/test_pn and enter http://www.yourdomain.com/test.php then click on Test.

If all went well, you should see on the screen what was send to test.php

Wait some time - the server is a bit slow.

Check your output.txt file for the result.

Hamburger


Worked like a charm, PM or reply with your bitcoin address as you also won half of the reward on my other post.
hamburger
Full Member
***
Offline Offline

Activity: 133



View Profile
September 14, 2011, 02:07:15 PM
 #6


 Roll Eyes never! always a pleasure to help.

If you really want to give away Bitcoin, please send it to;

1AvN36TvnWxkUYYBRckpRxyFcys5Z28bSB

this is an open wallet -

He that hath found the wallet, hath found a good thing, and shall receive a bitcoin bounty in abundance!

Nah, the mighty google will not reveal the location of this wallet!

Hamburger
wildboy211
Sr. Member
****
Offline Offline

Activity: 294


View Profile
September 14, 2011, 02:32:48 PM
 #7


 Roll Eyes never! always a pleasure to help.

If you really want to give away Bitcoin, please send it to;

1AvN36TvnWxkUYYBRckpRxyFcys5Z28bSB

this is an open wallet -

He that hath found the wallet, hath found a good thing, and shall receive a bitcoin bounty in abundance!

Nah, the mighty google will not reveal the location of this wallet!

Hamburger

The bounty is 0.40 more!
http://blockexplorer.com/address/1AvN36TvnWxkUYYBRckpRxyFcys5Z28bSB

And you are right, the mighty google does not show the location of the wallet.
hamburger
Full Member
***
Offline Offline

Activity: 133



View Profile
September 14, 2011, 04:46:31 PM
 #8


Thank you, someone might get lucky soon!
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!