Bitcoin Forum
November 17, 2017, 11:24:49 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: MtGox API fails with trading bot.  (Read 1433 times)
MatthewLM
Legendary
*
Offline Offline

Activity: 1092



View Profile WWW
August 05, 2011, 09:32:47 PM
 #1

http://stackoverflow.com/questions/6959167/libcurl-timeouts-on-urls-which-are-working-in-my-webbrowser/6962850#6962850

But tradehill is fine. I was trying all day to figure out why. I have no clue.

Bitcoin Extra Wallet | Peercoin Android Wallet
BTC: 1D5A1q5d192j5gYuWiP3CSE5fcaaZxe6E9  PPC: PH7fVn1Xs7nkUFmdwCX2ZRYfLPCSwGxAq9
1510961089
Hero Member
*
Offline Offline

Posts: 1510961089

View Profile Personal Message (Offline)

Ignore
1510961089
Reply with quote  #2

1510961089
Report to moderator
1510961089
Hero Member
*
Offline Offline

Posts: 1510961089

View Profile Personal Message (Offline)

Ignore
1510961089
Reply with quote  #2

1510961089
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1510961089
Hero Member
*
Offline Offline

Posts: 1510961089

View Profile Personal Message (Offline)

Ignore
1510961089
Reply with quote  #2

1510961089
Report to moderator
1510961089
Hero Member
*
Offline Offline

Posts: 1510961089

View Profile Personal Message (Offline)

Ignore
1510961089
Reply with quote  #2

1510961089
Report to moderator
1510961089
Hero Member
*
Offline Offline

Posts: 1510961089

View Profile Personal Message (Offline)

Ignore
1510961089
Reply with quote  #2

1510961089
Report to moderator
2112
Legendary
*
Offline Offline

Activity: 1960



View Profile
August 06, 2011, 12:51:19 AM
 #2

This is easy. Make the bot send HTTP headers exactly as the browser that you use on your computer. MtGox uses some DDoS protection that is very sensitive to the content and order of the HTTP headers. What exactly needs to be done changes dynamically with the DDoS attack signatures that are going on from zombie computers in your network neighbourhood.

Please comment, critique, criticize or ridicule BIP 2112: https://bitcointalk.org/index.php?topic=54382.0
Long-term mining prognosis: https://bitcointalk.org/index.php?topic=91101.0
kjj
Legendary
*
Offline Offline

Activity: 1302



View Profile
August 07, 2011, 04:44:09 AM
 #3

Try adding a user agent to the curl options.

p2pcoin: a USB/CD/PXE p2pool miner - 1N8ZXx2cuMzqBYSK72X4DAy1UdDbZQNPLf - todo
I routinely ignore posters with paid advertising in their sigs.  You should too.
epetroel
Sr. Member
****
Offline Offline

Activity: 428


View Profile
August 07, 2011, 04:59:55 AM
 #4

As others have said, adding the user agent string should do the trick.

Also, posted an answer on your SO question Smiley
MatthewLM
Legendary
*
Offline Offline

Activity: 1092



View Profile WWW
August 07, 2011, 07:39:39 PM
 #5

When I tried the user-agent it failed.  Huh

Bitcoin Extra Wallet | Peercoin Android Wallet
BTC: 1D5A1q5d192j5gYuWiP3CSE5fcaaZxe6E9  PPC: PH7fVn1Xs7nkUFmdwCX2ZRYfLPCSwGxAq9
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!