Bitcoin Forum
April 18, 2024, 07:53:15 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: MtGox API fails with trading bot.  (Read 1534 times)
MatthewLM (OP)
Legendary
*
Offline Offline

Activity: 1190
Merit: 1004


View Profile
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.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713426795
Hero Member
*
Offline Offline

Posts: 1713426795

View Profile Personal Message (Offline)

Ignore
1713426795
Reply with quote  #2

1713426795
Report to moderator
1713426795
Hero Member
*
Offline Offline

Posts: 1713426795

View Profile Personal Message (Offline)

Ignore
1713426795
Reply with quote  #2

1713426795
Report to moderator
1713426795
Hero Member
*
Offline Offline

Posts: 1713426795

View Profile Personal Message (Offline)

Ignore
1713426795
Reply with quote  #2

1713426795
Report to moderator
2112
Legendary
*
Offline Offline

Activity: 2128
Merit: 1065



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: 1024



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: 431
Merit: 251


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 (OP)
Legendary
*
Offline Offline

Activity: 1190
Merit: 1004


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

When I tried the user-agent it failed.  Huh
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!