![]() |
|
|
#1 |
|
Dec 2018
China
43 Posts |
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()); } } ``` |
|
|
|
|
|
#2 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
2×112×47 Posts |
Quote:
I recommend using the other tools linked to from this page. They're much more feature-complete. |
|
|
|
|
|
|
#3 |
|
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
254748 Posts |
You don't need to reinvent the wheel. MISFIT already exists and there is a subforum for it.
|
|
|
|
|
|
#4 |
|
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
24×3×163 Posts |
See also this post in the reference info compilation.
|
|
|
|
|
|
#5 | |
|
Aug 2002
North San Diego Coun
821 Posts |
Quote:
|
|
|
|
|
|
|
#6 |
|
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
22×2,767 Posts |
|
|
|
|
|
|
#7 | |
|
Dec 2018
China
43 Posts |
Quote:
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:) |
|
|
|
|
![]() |
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 |