Bitcoin Forum
May 08, 2024, 01:01:23 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: how does posting work here (technical details)?  (Read 860 times)
achow101 (OP)
Staff
Legendary
*
Offline Offline

Activity: 3388
Merit: 6631


Just writing some code


View Profile WWW
October 01, 2015, 03:23:42 AM
 #1

I am writing an android app for this forum (thread: https://bitcointalk.org/index.php?topic=1195830.0) and part of the app is actually creating and editing posts. Since bitcointalk doesn't have any api that I can use for posting, the app must scrape the forum pages and send the proper requests in order to do anything. However, I can't seem to figure out how the actual posting mechanism works. I have looked at page source, and I found that clicking the post button submits the form for the post and it has an attribute
Code:
onclick="return submitThisOnce(this)"
which I think is the function that actually does the posting. But my problem is that I can't actually figure out what that is doing, and thus I can't figure out what my app should be doing in order to submit a post.

1715173283
Hero Member
*
Offline Offline

Posts: 1715173283

View Profile Personal Message (Offline)

Ignore
1715173283
Reply with quote  #2

1715173283
Report to moderator
1715173283
Hero Member
*
Offline Offline

Posts: 1715173283

View Profile Personal Message (Offline)

Ignore
1715173283
Reply with quote  #2

1715173283
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, but full nodes are more resource-heavy, and they must do a lengthy initial syncing process. As a result, lightweight clients with somewhat less security are commonly used.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
achow101 (OP)
Staff
Legendary
*
Offline Offline

Activity: 3388
Merit: 6631


Just writing some code


View Profile WWW
October 02, 2015, 01:50:57 AM
 #2

bump

dogie
Legendary
*
Offline Offline

Activity: 1666
Merit: 1183


dogiecoin.com


View Profile WWW
October 02, 2015, 03:02:51 AM
 #3

http://www.simplemachines.org/community/index.php?topic=453008.0 updated with http://wiki.simplemachines.org/smf/SMF_API should help. Both link to further documentation on SM's API which is at least a start for bitcointalk which is a semi-custom SMF implementation.

theymos
Administrator
Legendary
*
Offline Offline

Activity: 5194
Merit: 12976


View Profile
October 02, 2015, 03:10:07 AM
 #4

http://www.simplemachines.org/community/index.php?topic=453008.0 updated with http://wiki.simplemachines.org/smf/SMF_API should help. Both link to further documentation on SM's API which is at least a start for bitcointalk which is a semi-custom SMF implementation.

bitcointalk.org is SMF 1.x. That's not going to work.

submitThisOnce doesn't make the post. Just send an HTTP POST in the same way that the form does. Note that you need to pass a valid session key as "sc" (which the form does via a hidden <input>).

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
achow101 (OP)
Staff
Legendary
*
Offline Offline

Activity: 3388
Merit: 6631


Just writing some code


View Profile WWW
October 02, 2015, 03:12:00 AM
 #5

http://www.simplemachines.org/community/index.php?topic=453008.0 updated with http://wiki.simplemachines.org/smf/SMF_API should help. Both link to further documentation on SM's API which is at least a start for bitcointalk which is a semi-custom SMF implementation.

bitcointalk.org is SMF 1.x. That's not going to work.

submitThisOnce doesn't make the post. Just send an HTTP POST in the same way that the form does. Note that you need to pass a valid session key as "sc" (which the form does via a hidden <input>).
Thanks. I will try that.

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!