Bitcoin Forum
December 18, 2018, 02:45:27 PM *
News: Latest Bitcoin Core release: 0.17.0 [Torrent].
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: MtGox API fails with trading bot.  (Read 1453 times)
MatthewLM
Legendary
*
Offline Offline

Activity: 1092
Merit: 1000



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
1545144327
Hero Member
*
Offline Offline

Posts: 1545144327

View Profile Personal Message (Offline)

Ignore
1545144327
Reply with quote  #2

1545144327
Report to moderator
100% New Software
PC, Mac, Android, & HTML5 Clients
Krill Rakeback
Low Rake
Bitcoin Poker 3.0
Bad Beat Jackpot
SwC Poker Relaunch
PLAY NOW
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1545144327
Hero Member
*
Offline Offline

Posts: 1545144327

View Profile Personal Message (Offline)

Ignore
1545144327
Reply with quote  #2

1545144327
Report to moderator
2112
Legendary
*
Offline Offline

Activity: 2114
Merit: 1027



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
Merit: 1001



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

Try adding a user agent to the curl options.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
epetroel
Sr. Member
****
Offline Offline

Activity: 428
Merit: 250


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
Merit: 1000



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!