logo Homepage
+  NewbieContest
|-+  Challenges» Aide Programmation» Prog - Fichus nombres
Username:
Password:
Pages: 1 ... 7 8 [9]
  Retourner à l'épreuve    Imprimer  
Auteur Fil de discussion: Prog - Fichus nombres  (Lu 76195 fois)
sisyang
Profil challenge

Classement : 429/54254

Néophyte
*
Hors ligne Hors ligne
Messages: 9


Voir le profil
« #120 le: 31 Janvier 2021 à 12:11:06 »

J'avais un peu laissé tomber le défi pour un temps (raisons professionnelles).
Intrigué par ta proposition de syntaxe (il me semblait qu'en python le " était le strict équivalent de ') je tente et finis par trouver mon erreur:
Dans mon code j'avais écrit "rep2 " à la place de "rep2"   
Sinon pas besoin non plus de passer mes entiers en strings, j'ai testé les 2 et ça passe.
Merci à vous deux pour le coup de main ( je découvre wireshark en parallèle mais je ne peux prétendre avoir tout bien compris pour l'instant... ).

Plus que l'étape 3 maintenant.

may i ask what mean " write "rep2" instead of "rep2" ????? is that same each others??
Journalisée
rostale
Profil challenge

Classement : 14/54254

Néophyte
*
Hors ligne Hors ligne
Messages: 24


Voir le profil
« #121 le: 31 Janvier 2021 à 13:56:29 »

Hi sisyang,

The guy said he made a mistake when writing "rep2" in his program. Indeed he wrote "rep2 ", ie with a blank character after the 2. So, his answer was not correct.

br

Journalisée
sisyang
Profil challenge

Classement : 429/54254

Néophyte
*
Hors ligne Hors ligne
Messages: 9


Voir le profil
« #122 le: 01 Février 2021 à 02:41:52 »

thanks to rostale's reply.

and after on, the processing of 1st submit maybe corrected.  not "too low" reply is there.
but still after submit of login and pass, still too slow is there.  i got the correct login and pass and correctly submit the data..

in the chall, * NB:The login and the pass are only valid for 2 seconds, don't waste time.. so total 4 sec is valuable for users from the 1st page get to the end submit of id and password ??  right ?? or total 2 sec ???

hmmm. still stuck.

who teach me??

thanks regards.  all free corona 19..
« Dernière édition: 01 Février 2021 à 02:49:17 par sisyang » Journalisée
the lsd
Administrateur

Profil challenge

Classement : 189/54254

Membre Héroïque
*****
Hors ligne Hors ligne
Messages: 3096

poulping for fun & profit


Voir le profil WWW
« #123 le: 01 Février 2021 à 09:17:53 »

Hello sisyang,

Don't remember the exact timeframe (2sec in total or 2sec when you've got the login/pass), but if you are sure that login/pass are correct, the only issue is the timing. So it should be 2sec in total ^^

Enjoy

The lsd
Journalisée

Newbie Contest Staff :
The lsd - Th3_l5D (IRC)
Statut :
Administrateur
Citation :
Cartésien désabusé : je pense, donc je suis, mais je m'en fous !
sisyang
Profil challenge

Classement : 429/54254

Néophyte
*
Hors ligne Hors ligne
Messages: 9


Voir le profil
« #124 le: 02 Février 2021 à 03:28:07 »

thanks for reply from the lsd.

i checked the 2nd pro. processing time. hmm. about 2-3 sec . so the total time is over 2 sec.
BTW, i red the forum.  i found the strange or important stuff. ie  HTTP connection can be done..
but i tried that. but like other user as kasmax, 301 moved to http://HTTPS://www.....  so the output is "Renvoyez <strong>tous</strong> les  résultats à  l'aide du formulaire."   i append the content type, content length host etc..  previously i successed by the HTTPS.. so is that really possibily to use HTTP connection rather than HTTPS??

thanks

regards.
Journalisée
rostale
Profil challenge

Classement : 14/54254

Néophyte
*
Hors ligne Hors ligne
Messages: 24


Voir le profil
« #125 le: 02 Février 2021 à 10:17:07 »

hi sisyang,

No HTTPS is mandatory. For the processing time, find where your prog is spending time and try to optimise it or do it before time is running...

Br,
rostale
Journalisée
sisyang
Profil challenge

Classement : 429/54254

Néophyte
*
Hors ligne Hors ligne
Messages: 9


Voir le profil
« #126 le: 03 Mars 2021 à 03:02:12 »

Salut
ta syntaxe est mauvaise
Code:
reponse = { "rep1":"F" , "rep2": 8 , "rep3":13 , "rep4": 41 , "rep5": 789456123789456123}

tu devrais avoir ceci :
Code:
reponse = { 'rep1' : 'F' , 'rep2' : '8' , 'rep3' : '13' , 'rep4' : '41' , 'rep5' : '789456123789456123'}

Relis les posts précédents, tu auras sûrement des réponses à ta question de login.
Tu sembles être proche de la solution

You don't have to. i tried both. and both are successful.

and . i found the cause of time consuming.  at first, i send the cookie, headers etc by making them by myself. but that makes time waiting....  so i used the session of requests module . finally so fast...  that works..... passed.
thanks for nice challs.
regards.
« Dernière édition: 03 Mars 2021 à 03:27:43 par sisyang » Journalisée
Pages: 1 ... 7 8 [9]
  Retourner à l'épreuve    Imprimer  
 
Aller à: