Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

POST method kod PHP

[es] :: PHP :: POST method kod PHP

[ Pregleda: 5191 | Odgovora: 14 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

StratOS
Slovenija

Član broj: 2234
Poruke: 987
*.dsl.siol.net



Profil

icon POST method kod PHP22.04.2002. u 14:28 - pre 190 meseci
Citat:

Testing HTTP Request:
User Agent:

Expected: "Crafted Agent"
Found: "Crafted Agent"
Request Method:
Expected: POST
Found: GET
Failed.....

Answers
Your answer appears to be incorrect.


Tko riješi sledeči puzzle, jer riječ je o user agentima, POST GET metodama ...
Da biste riješili ovaj problem morate biti registrovani na sledečem sajtu :
OVDJE .

Napišite html koji če razriješiti komunikaciju između servera i vas i pravilno riješiti ovaj nastali problem.

Hm .. i zanima me još samo nešto : Kako zamjeniti string user agent-a u IE 5/6
iz tipičnog

"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Joke to do that; .NET CLR 1.0.3705)"

Hvala več unaprijed.

[Ovu poruku je menjao StratOS dana 20.05.2002 u 05:13 PM GMT]
Pozdrav StratOS
"Multitasking - ability to f##k up several things at once."
"It works better if you plug it in."
"As a rule, software systems do not work well until they have been used, and have failed repeatedly, in real applications."
"The one who is digging the hole for the other to fall in is allready in it."
 
Odgovor na temu

StratOS
Slovenija

Član broj: 2234
Poruke: 987
*.dsl.siol.net



Profil

icon Re: User agents/POST GET method07.05.2002. u 06:38 - pre 190 meseci
Najprej je treba spremeniti user agent, jer ga PHP server testira kao "Crafted Agent".

V Mozilli možeš UA string pretvoriti u šta hočeš.
Ovo važi za zadnju verziju :
Otvoriš settings file za Mozzilu (security-prefs.js)
Dodaš liniju
pref("general.useragent.override", "Crafted Agent");

A onda treba da napraviš formu za rješenje ove zadače.
1. Forma treba upotrebiti POST method, to mi je uspijelo.
2. Jednom sam u javi napravio i rutinu koja je request od servera dobila i zapisala ga u jedan fajl na HD, ja bih trebao da submitujem odmah riješenje ovog problema nazad serveru i to bi bilo to :)
P.S.:Pitanja su na engleskom jeziku

A evo što mi je sa mojom formom :

Testing HTTP Request:
User Agent:


Expected: "Crafted Agent"

Found: "Crafted Agent"
Request Method:

Expected: POST

Found: POST
Answer:

Found: ... converting...
Failed.....

Answers

Your answer appears to be incorrect.

Što zapravo tražim, trebam HTML source code za rješenje ovog problema jer u PHP baš nemam puno znanja, mislim da to nije tako velik problem za vas majstore.

Hvala več unaprijed

Boris
Pozdrav StratOS
"Multitasking - ability to f##k up several things at once."
"It works better if you plug it in."
"As a rule, software systems do not work well until they have been used, and have failed repeatedly, in real applications."
"The one who is digging the hole for the other to fall in is allready in it."
 
Odgovor na temu

RAZZLEDAZZLER
Tora Bora

Član broj: 27
Poruke: 543
*.ppp-bg.sezampro.yu



Profil

icon Re: User agents/POST GET method07.05.2002. u 15:51 - pre 190 meseci
kada odem na tu adresu shto si ostavio... meni javlja samo da sam uspeshno ulogovan .. ali ok, odem na http://www.caesum.com/game/ i onda dobijem meni sa strane, kliknem na Problems ... i onda odaberem "View All Problems Available" ..ali medju problemima nema tog tvog.

Jel potrebno neki reshiti da bi se doshlo do tog ...ili ...?
 
Odgovor na temu

StratOS
Slovenija

Član broj: 2234
Poruke: 987
*.dsl.siol.net



Profil

icon Re: User agents/POST GET method07.05.2002. u 16:17 - pre 190 meseci
registruješ se ovdje http://www.caesum.com/game/ , a problem koji trijeba riješiti je http://www.caesum.com/game/problems/misc_4.php.

Neznam, ti nemaš tog zadatka, jer si još u početku, izgleda da je potrebno samo de sa registruješ, logiraš a onda treba da riješiš ovaj problem http://www.caesum.com/game/problems/misc_4.php.


A odgovor treba da bude zakodiran isto kao i pitanje
Pozdrav StratOS
"Multitasking - ability to f##k up several things at once."
"It works better if you plug it in."
"As a rule, software systems do not work well until they have been used, and have failed repeatedly, in real applications."
"The one who is digging the hole for the other to fall in is allready in it."
 
Odgovor na temu

RAZZLEDAZZLER
Tora Bora

Član broj: 27
Poruke: 543
*.ppp-bg.sezampro.yu



Profil

icon Re: User agents/POST GET method07.05.2002. u 19:16 - pre 190 meseci
ma znam ja to, samo shto kada odem na http://www.caesum.com/game/problems/misc_4.php ..javi mi
"Hey!
Either your cookie was not found or you should not be on this page. "

A cookie imam sigurno. tako da verovatno moram da reshim neki zadatak da bih stigao do tog tvog.
Kazi koje si sve zadatke do sada reshio da reshim i ja i onda ce mi se ovaj verovatno otvoriti.
 
Odgovor na temu

StratOS
Slovenija

Član broj: 2234
Poruke: 987
*.dsl.siol.net



Profil

icon Re: User agents/POST GET method07.05.2002. u 20:33 - pre 190 meseci
Da izgleda da je tako, al probaj da napraviš ovaj html s formom, pa češ vidjeti dal radi ...


P.S.: Prije su ologuj, pa odda otvori ovaj HTML, kojeg prije sahraniš na disk.

HTML CODE
Code:

<html>
<body>
<form action="http://www.caesum.com/game/problems/misc_4.php" method="post">
Please type the answer:
<input type="text" name="fname" size="20">
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>


Pa vidi jel radi !
P.S.:Formu trebaš da spremeniš malo da bih mogao dobiti request i onda još jedanput postati odgovor.

Pitanje je enkriptirano, a odgovor treba da enkriptuješ istim putem.

Ajde do ponovo
Pozdrav StratOS
"Multitasking - ability to f##k up several things at once."
"It works better if you plug it in."
"As a rule, software systems do not work well until they have been used, and have failed repeatedly, in real applications."
"The one who is digging the hole for the other to fall in is allready in it."
 
Odgovor na temu

RAZZLEDAZZLER
Tora Bora

Član broj: 27
Poruke: 543
*.ppp-bg.sezampro.yu



Profil

icon Re: User agents/POST GET method08.05.2002. u 02:14 - pre 190 meseci
Ne mogu to ni da probam, dok ne reshim izgleda neki zadatak koji vredi 5 poena ... sad cu da vidim ako budem mogao neki


Lepo mi u profilu pishe ... "Your current authorisation level allows you to attempt problems up to 5 points in value. "

znachi ne mogu neke jache probleme josh da reshavam

 
Odgovor na temu

StratOS
Slovenija

Član broj: 2234
Poruke: 987
*.dsl.siol.net



Profil

icon Re: User agents/POST GET method08.05.2002. u 06:09 - pre 190 meseci
Citat:

Zivot je s*****, ostalo su sitnice

Pozdrav StratOS
"Multitasking - ability to f##k up several things at once."
"It works better if you plug it in."
"As a rule, software systems do not work well until they have been used, and have failed repeatedly, in real applications."
"The one who is digging the hole for the other to fall in is allready in it."
 
Odgovor na temu

StratOS
Slovenija

Član broj: 2234
Poruke: 987
*.dsl.siol.net



Profil

icon Re: User agents/POST GET method20.05.2002. u 17:10 - pre 189 meseci
Dali mi tko zna na kratko objasniti kako komunicira klient sa PHP serverom. Neznam točno, jer imam velikih problema sa enkodiranjem/dekodiranjem, dali mi tko može napraviti kakvu formu, tako da bi enkodirano pitanje servera u java scriptu mogao da sahranim na disk ?

Kako da riješiš pitanje UE u mozill.
Otvoriš fajl sa settingsima za Mozilla (security-prefs.js)
Dodaš red:
pref("general.useragent.override", "Crafted Agent");

To bi se moglo da riješi sa Proxomitronom ili telnetom, dali zna tko kako bi se to riješilo, da bi bar dobio enkriptirano pitanje.

Kakve vrste enkripcije so moguče ?
Pozdrav StratOS
"Multitasking - ability to f##k up several things at once."
"It works better if you plug it in."
"As a rule, software systems do not work well until they have been used, and have failed repeatedly, in real applications."
"The one who is digging the hole for the other to fall in is allready in it."
 
Odgovor na temu

StratOS
Slovenija

Član broj: 2234
Poruke: 987
*.dsl.siol.net



Profil

icon Re: POST method kod PHP10.06.2002. u 13:09 - pre 189 meseci
Tko zna kako riješiti to sa formama neka mi odgovori na mail !!!
poslat ču mu Username/Password !!
Pozdrav StratOS
"Multitasking - ability to f##k up several things at once."
"It works better if you plug it in."
"As a rule, software systems do not work well until they have been used, and have failed repeatedly, in real applications."
"The one who is digging the hole for the other to fall in is allready in it."
 
Odgovor na temu

leka
Dejan Lekić
senior software engineer, 3Developers
Ltd.
London, UK

Član broj: 234
Poruke: 2534
*.racasse.se

Sajt: dejan.lekic.org


Profil

icon Re: POST method kod PHP10.06.2002. u 14:51 - pre 189 meseci
web client i PHP nemaju nikakve veze jedno sa drugim StratOS...
Komunikacija uvek ide ovako
Code:


+--------+ <-> +------------+ <-> +-----+
| client | <-> | web server | <-> | PHP |
+--------+ <-> +------------+ <-> +-----+


Znaci SVE prolazi kroz web server (recimo Apache), sto je i normalno...

Dejan Lekic
software engineer, MySQL/PgSQL DBA, sysadmin
 
Odgovor na temu

StratOS
Slovenija

Član broj: 2234
Poruke: 987
*.dsl.siol.net



Profil

icon Re: POST method kod PHP10.06.2002. u 14:58 - pre 189 meseci
Da to se razumije, samo što web server preko PHP proverava HTTP parametere i slične konstante u tom primjeru ...

ako te zanima, pogledaj ...
Pozdrav StratOS
"Multitasking - ability to f##k up several things at once."
"It works better if you plug it in."
"As a rule, software systems do not work well until they have been used, and have failed repeatedly, in real applications."
"The one who is digging the hole for the other to fall in is allready in it."
 
Odgovor na temu

StratOS
Slovenija

Član broj: 2234
Poruke: 987
*.dsl.siol.net



Profil

icon Re: POST method kod PHP12.06.2002. u 13:25 - pre 188 meseci
evo treba samo da postujem Answer
+++RESP 40+++
HTTP/1.1 200 OK
Date: Wed, 12 Jun 2002 10:14:19 GMT
Server: Apache/1.3.14 (Unix) mod_perl/1.24 PHP/4.0.6 FrontPage/4.0.4.3 mod_ssl/2.7.1 OpenSSL/0.9.6
X-Powered-By: PHP/4.0.6
Question: U3VybmFtZSBvZiBTaGVybG9jayBIb2xtZXMgYXJjaCBlbmVteQ==
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html
+++CLOSE 40+++

treba da dekodiram chunked paket (U3VybmFtZSBvZiBTaGVybG9jayBIb2xtZXMgYXJjaCBlbmVteQ==)
Pozdrav StratOS
"Multitasking - ability to f##k up several things at once."
"It works better if you plug it in."
"As a rule, software systems do not work well until they have been used, and have failed repeatedly, in real applications."
"The one who is digging the hole for the other to fall in is allready in it."
 
Odgovor na temu

StratOS
Slovenija

Član broj: 2234
Poruke: 987
*.dsl.siol.net



Profil

icon Re: POST method kod PHP12.06.2002. u 14:29 - pre 188 meseci
Problem 31

Testing HTTP Request:
User Agent:
# Expected: "Crafted Agent"
# Found: "Crafted Agent"
Request Method:
# Expected: POST
# Found: POST
Answer:
# Found: ... converting...

Failed.....


+++GET 54+++
POST /game/problems/misc_4.php?echo%20$PHP_SELF;? HTTP/1.0
Host: www.caesum.com
User-Agent: Crafted Agent
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1
Accept-Language: en-us, en;q=0.50
XXXXXXXXXXXXXXX: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66
Keep-Alive: 300
Cookie: key=PZAnvsOHLtS1PuP6oCBF4zxo
Content-Type: application/x-www-form-urlencoded
Content-Length: 52
Connection: keep-alive
Accept-encoding: gzip, deflate
Posting 52 bytes...

+++RESP 54+++
HTTP/1.1 200 OK
Date: Wed, 12 Jun 2002 11:18:43 GMT
Server: Apache/1.3.14 (Unix) mod_perl/1.24 PHP/4.0.6 FrontPage/4.0.4.3 mod_ssl/2.7.1 OpenSSL/0.9.6
X-Powered-By: PHP/4.0.6
Question: U3VybmFtZSBvZiBTaGVybG9jayBIb2xtZXMgYXJjaCBlbmVteQ==
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html
+++CLOSE 54+++

Trebam samo dekodirati pitanje, onda po istom načinu opet kodirati poruku i poslati kao Answer, gdje je moguče dobiti takav enkriptor/dekriptor ?
Pozdrav StratOS
"Multitasking - ability to f##k up several things at once."
"It works better if you plug it in."
"As a rule, software systems do not work well until they have been used, and have failed repeatedly, in real applications."
"The one who is digging the hole for the other to fall in is allready in it."
 
Odgovor na temu

StratOS
Slovenija

Član broj: 2234
Poruke: 987
*.dsl.siol.net



Profil

icon Re: POST method kod PHP12.06.2002. u 23:23 - pre 188 meseci
Ha, dekodirao sam mime based64 encoding

Content-Type: text/plain; charset=US-ASCII;
Content-transfer-encoding: base64

U3VybmFtZSBvZiBTaGVybG9jayBIb2xtZXMgYXJjaCBlbmVteQ==

ako dekodiramo znači :Surname of Sherlock Holmes arch enemy

a odgovor je Moriarty, ako opet dekodiramo dobijemo :
Content-Type: text/plain; charset=US-ASCII; name=Answer
Content-transfer-encoding: base64

TW9yaWFydHk=

Hm, postavi se pitanje, kako da to postujem ?
Bilo bi dobro da mi tko napravi formu, jer ne znam što kod moje ne valja :)
a odgovor trega postati na http://www.caesum.com/game/problems/misc_4.php.
Pozdrav StratOS
"Multitasking - ability to f##k up several things at once."
"It works better if you plug it in."
"As a rule, software systems do not work well until they have been used, and have failed repeatedly, in real applications."
"The one who is digging the hole for the other to fall in is allready in it."
 
Odgovor na temu

[es] :: PHP :: POST method kod PHP

[ Pregleda: 5191 | Odgovora: 14 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.