This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Hello,

I have capture a emission packet, and this is a HTTP/XML protocol using POST request. I saw the source code, but normaly, when we send a post request, we have to send a variable with its value to an url/server right ? So, how can I know the variable name or the multiple variable name use for contact the serveur with a POST request ?

POST /newsoap/soap/mim.php HTTP/1.1
Host: site.com
User-Agent: SITE/0.15 CFNetwork/548.0.3 Darwin/11.0.0
Content-Length: 1139
Accept: */*
Content-Type: text/xml; charset=utf-8
Accept-Language: fr-fr
Accept-Encoding: gzip, deflate
Cookie: PHPSESSID=20mgf6gtg00svvdg91mlh4t5e0
Connection: keep-alive

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<requet xmlns="http://site.com/">
<lang>fr</lang><pass>toto</pass>
<xml><![CDATA[<?xml version="1.0"?>
<Membrep nbInvitations="" nbMessages="" nbNews="" enabled="" nbCommunaute="" nbEvenement="" nbActivite="" nbLieux="" type_activite_id="" creneau_val="" activite_id="" creneau_id="" fonction="" secteur="" ville="" genre="" daten="" Added="" PK="" activiteImage="" activiteNiveau="" activiteNom="" statu="" image="" visible="" facebookId="" twitterId="" linkedId="" telephone="" email="" prenom="" nom=""><listeElements/><Positionp nom="" PK="" type="" longitude="" latitude=""/></Membrep>
]]></xml>
<nomrequet>inscription</nomrequet>
<param1><![CDATA[fr]]></param1>
<param2><![CDATA[AAAAAA]]></param2>
<param3><![CDATA[BBBBBBB]]></param3>
<param4><![CDATA[CCCCCC]]></param4>
<param5><![CDATA[DDDDDD]]></param5>
<param6><![CDATA[EEEEEEEE]]></param6>
</requet>
</soap:Body>
</soap:Envelope>

asked 17 Dec '11, 11:05

Rian's gravatar image

Rian
111
accept rate: 0%

edited 17 Dec '11, 11:44

grahamb's gravatar image

grahamb ♦
19.8k330206


Section 9.5 "POST" of RFC 2616 says

The actual function performed by the POST method is determined by the server and is usually dependent on the Request-URI. The posted entity is subordinate to that URI in the same way that a file is subordinate to a directory containing it, a news article is subordinate to a newsgroup to which it is posted, or a record is subordinate to a database.

It says nothing about variables; the way the server responds to the request is, as indicated, dependent on the Request-URI (/newsoap/soap/mim.php) - perhaps that's a PHP script that reads an XML blob of SOAP (as opposed to a bar of soap :-)) and performs the request indicated by the blob with the parameters indicated by the blob.

permanent link

answered 18 Dec '11, 18:38

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×293
×31
×5

question asked: 17 Dec '11, 11:05

question was seen: 4,771 times

last updated: 18 Dec '11, 18:38

p​o​w​e​r​e​d by O​S​Q​A