Commit 80125c8
authored
Update php-binance-api.php
Hello
I found a bug in httpRequest method that causes error 400.
It seems there is a bug that cause on some servers below error:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The request could not be satisfied</TITLE>
</HEAD><BODY>
<H1>400 ERROR</H1>
<H2>The request could not be satisfied.</H2>
<HR noshade size="1px">
Bad request.
<BR clear="all">
<HR noshade size="1px">
<PRE>
Generated by cloudfront (CloudFront)
Request ID: t5MiwWw_1St1zze5JTgwkAqVnPDc_d5ZFkGSRlYm_pK7qL8lL6izhA==
</PRE>
<ADDRESS>
</ADDRESS>
</BODY></HTML>
I received this error on my server in Netherlands and with the same code, it's OK on my Germany server.
It seems this error occur when httrequest method is POST.
You should send your data (like order parameters) in post fields, not in url query.
By the way, I edited httpRequest method and now it's work fine.
I think that I solved this issue:
#991 parent 24cddef commit 80125c8
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
876 | 876 | | |
877 | 877 | | |
878 | 878 | | |
879 | | - | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
880 | 883 | | |
881 | 884 | | |
882 | 885 | | |
| |||
897 | 900 | | |
898 | 901 | | |
899 | 902 | | |
900 | | - | |
| 903 | + | |
901 | 904 | | |
902 | 905 | | |
903 | 906 | | |
| |||
0 commit comments