mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware > GPU Computing

Reply
 
Thread Tools
Old 2021-11-24, 17:36   #1
Neutron3529
 
Neutron3529's Avatar
 
Dec 2018
China

43 Posts
Default Is there any API that could submit TF result using an automatic program?

Currently, mfaktc does not support communicate with primenet, and I want to write a program to provide a way.



I tried several times, and this is the best result I got:



You were logged in but your login session expired before the results were submitted.<br>Please log back in and re-submit the results.



Is there any API or suggestions?


Here is my code(written in Rust)
```
//[dependencies]
//reqwest = { version="*", features=["multipart"]}
//tokio = { version="*", features=["full"]}
// *** represents something secret and should be modified carefully.
const SECRET_ID:&str=***An ID is needed here***;
use reqwest::multipart;

use reqwest::header;

async fn send(s:&'static str)->Result<reqwest::Response,reqwest::Error>{
let form = multipart::Form::new()
// Adding just a simple text field...
.text("data", s)
.text("was_logged_in_as",SECRET_ID);

let mut headers = header::HeaderMap::new();

headers.insert("cookies",header::HeaderValue::from_static("GIMPSWWW=***MAYBE something here is useful, but I do not get the correct answer.***"));

// And finally, send the form
let client = reqwest::Client::builder().default_headers(headers).build()?;
let resp = client
.post("https://www.mersenne.org/manual_result/")
.multipart(form)
.send().await?;
Ok(resp)
}
#[tokio::main]
async fn main(){
if let Ok(resp)=send("UID: Neutron3529/DR722, no factor for M145965041 from 2^73 to 2^74 [mfaktc 0.21 barrett76_mul32_gs]").await{
println!("{:?}",resp);
println!("{}",resp.text().await.unwrap());
}
}

```
Neutron3529 is offline   Reply With Quote
Old 2021-11-24, 17:45   #2
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

17×599 Posts
Default

Quote:
Originally Posted by Neutron3529 View Post
Currently, mfaktc does not support communicate with primenet, and I want to write a program to provide a way.
Lots of "prior art" in this space. Please see this page for a quick-and-dirty bit of Perl.

I recommend using the other tools linked to from this page. They're much more feature-complete.
chalsall is offline   Reply With Quote
Old 2021-11-24, 17:47   #3
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

1023410 Posts
Default

You don't need to reinvent the wheel. MISFIT already exists and there is a subforum for it.
Uncwilly is offline   Reply With Quote
Old 2021-11-24, 19:16   #4
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

3·19·107 Posts
Default

See also this post in the reference info compilation.
kriesel is online now   Reply With Quote
Old 2021-11-24, 21:15   #5
sdbardwick
 
sdbardwick's Avatar
 
Aug 2002
North San Diego County

19·37 Posts
Default

Quote:
Originally Posted by Uncwilly View Post
You don't need to reinvent the wheel. MISFIT already exists and there is a subforum for it.
Is there a working download URL somewhere?
sdbardwick is offline   Reply With Quote
Old 2021-11-24, 21:27   #6
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

2×7×17×43 Posts
Default

https://mersenneforum.org/misfit/downloads/
Uncwilly is offline   Reply With Quote
Old 2021-11-25, 14:09   #7
Neutron3529
 
Neutron3529's Avatar
 
Dec 2018
China

43 Posts
Talking

Quote:
Originally Posted by chalsall View Post
Lots of "prior art" in this space. Please see this page for a quick-and-dirty bit of Perl.

I recommend using the other tools linked to from this page. They're much more feature-complete.

thank you for telling me this good page.


although the perl script does not work for me (or I had changed something wrong)
the python script works.


Thanks:)
Neutron3529 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I submit my manual result? Gordon0907 Information & Answers 9 2019-12-05 23:53
Automatic submit results + fetch assignments for mfaktc? DuskFalls GPU Computing 5 2017-12-02 00:34
Automatic Submission Spider for Workers... chalsall GPU to 72 113 2014-09-20 15:19
Automatic temperature control TObject Software 13 2012-04-27 19:33
Manual submission of automatic assignment result tichy PrimeNet 4 2010-12-17 09:57

All times are UTC. The time now is 12:03.


Thu Jan 20 12:03:31 UTC 2022 up 181 days, 6:32, 0 users, load averages: 1.47, 1.40, 1.40

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔