FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Paypal IPN and HTTP 1.1
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Paypal IPN and HTTP 1.1 [message #182242 is a reply to message #182230] Tue, 23 July 2013 02:11 Go to previous messageGo to previous message
j is currently offline  j
Messages: 9
Registered: July 2011
Karma:
Junior Member
On 7/22/2013 2:57 PM, Mitch Bujard wrote:
> On 2013-07-22 14:33:32 +0000, j said:
>
>> On 7/20/2013 6:25 AM, Mitch Bujard wrote:
>>> On 2013-07-17 13:36:58 +0000, Mitch Bujard said:
>>>
>>>> Today I got a message from Paypal entitled 'Action required before
>>>> October 7, 2013'. It says that at that date, IPN listener scripts will
>>>> have to be conformant to HTTP: 1.1 or they will stop working.
>>
>> This looks like a server issue. HTTP 1.1 has been around for quite a
>> while, why are you at 1.0?
>>
>> I'm not sure what you can do in PHP other than send some headers with
>> the host info. Otherwise I see that there are a number of changes in
>> 1.1 that can't be spoofed with a header.
>>
>> I'd say deal with the server. Post some code if you like, I've written
>> both IPN and PayPal Pro code so I (and I assume others) have some
>> familiarity.
>
> You are right. It can be the server.
>
> I got several hosts and will try the same script that Paypal lists at
> https://ppmts.custhelp.com/app/answers/detail/a_id/926/kw/IPN%20HTTP%2F1.1% 20new%20code
>
On 7/22/2013 2:57 PM, Mitch Bujard wrote:> On 2013-07-22 14:33:32 +0000,
j said:
>
>> On 7/20/2013 6:25 AM, Mitch Bujard wrote:
>>> On 2013-07-17 13:36:58 +0000, Mitch Bujard said:
>>>
>>>> Today I got a message from Paypal entitled 'Action required before
>>>> October 7, 2013'. It says that at that date, IPN listener scripts will
>>>> have to be conformant to HTTP: 1.1 or they will stop working.
>>
>> This looks like a server issue. HTTP 1.1 has been around for quite a
>> while, why are you at 1.0?
>>
>> I'm not sure what you can do in PHP other than send some headers with
>> the host info. Otherwise I see that there are a number of changes in
>> 1.1 that can't be spoofed with a header.
>>
>> I'd say deal with the server. Post some code if you like, I've written
>> both IPN and PayPal Pro code so I (and I assume others) have some
>> familiarity.
>
> You are right. It can be the server.

I think so.
>
> I got several hosts and will try the same script that Paypal lists at
> https://ppmts.custhelp.com/app/answers/detail/a_id/926/kw/IPN%20HTTP%2F1.1% 20new%20code

I use curl:

$url = 'http://www.paypal.com/cgi-bin/webscr';

$req = 'cmd=_notify-validate';

foreach ($_POST as $key => $value){
$value = urlencode(stripslashes($value));
$req .= "&$key=$value";
}

$ch = curl_init();

curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_POST,count($_POST) + 1);
curl_setopt($ch,CURLOPT_POSTFIELDS,$req);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);

curl_close($ch);


if (strcmp ($result, "VERIFIED") == 0) {

....


Jeff
>
>
> Thanks
>
> Mitch
> http://FontMenu.com
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Easy to use ORM with fulltext search and/or search library
Next Topic: A curious thing...about tags.
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Sep 19 16:16:34 GMT 2024

Total time taken to generate the page: 0.04954 seconds