[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: http_url_post_raw and paypal nvp
Hi Sean,
you were absolutely right.
>> To match that in HTTPAPI, use GET instead of POST there as well.
using http_url_get_raw fixed the problem, thanks for your fast
response
Mit freundlichen Grüssen
Jürgen Seifert
- Leiter EDV -
mailto: seifert@xxxxxxxxxxxxx
web: www.angelsport.de
Tel: 02591/950966
Fax: 02591/950965
Askari Sport GmbH
Hans-Böckler-Str. 7, 59348 Lüdinghausen, Deutschland
Registergericht: Amtsgericht Coesfeld, HRB 6840
Geschäftsführer: Paul Brüggemann, Heike Wagner, Rüdiger Walter
am Freitag, 23. September 2011 um 14:49 kam auf meinem Rechner folgende Nachricht:
>> From: Jürgen Seifert
>> If i post the url direct in a webbrowser, i get the correct data:
>>
>> https://api-3t.paypal.com/nvp?USER=BENUTZER&PWD=PASSWORT&SIGNATURE=SIGNATUR&METHOD=GetTransactionDetails&Version=71.0&transactionID=TRANSAKTION
>>
>>
>> but if i use http_url_post_raw, the server gives an answer with an error, as if i do not send the corrent request.
PS> If you are putting the https URL in your browser address bar and
PS> pressing enter, then you are using GET not POST. To match that in
PS> HTTPAPI, use GET instead of POST there as well.
PS> I'm not familiar with Paypal API and didn't carefully look at
PS> your program, but it seems odd to me that Paypal would encourage
PS> the use of a password in a GET request. That is not encrypted.
PS> POST seems more likely as an expected method...
PS> So I guess all I'm saying is if I understood your question
PS> correctly, you're not doing the same thing in HTTPAPI as you are in the browser.
PS> Having said all that, I glanced back at your program. I think
PS> the problem may relate to the formatting of your "data" variable.
PS> POST data would (in my limited understanding) expect the "?" which
PS> separates the variables from the URI in a GET request. The "&"
PS> may also be inappropriate, but others who have really done this
PS> would know better than I (especially after only 1 cup of coffee...)
PS> --
PS> Sean Porterfield
PS> This email is confidential, intended only for the named
PS> recipient(s) above and may contain information that is privileged.
PS> If you have received this message in error or are not the named
PS> recipient(s), please notify the sender immediately and delete this
PS> email message from your computer as any and all unauthorized
PS> distribution or use of this message is strictly prohibited. Thank you.
PS> -----------------------------------------------------------------------
PS> This is the FTPAPI mailing list. To unsubscribe, please go to:
PS> http://www.scottklement.com/mailman/listinfo/ftpapi
PS> -----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------