mIRC Home    About    Download    Register    News    Help

Print Thread
#114437 14/03/05 03:06 PM
Joined: Sep 2004
Posts: 73
S
SteeleR Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Sep 2004
Posts: 73
back with another problem ...
have the following tags:
Code:
 
<tr> 
                  <td height="22" width="23%"><blockquote>
                      <div align="left"><font face="Franklin Gothic Medium, Verdana, Courier New" size="2">Coordinates
                        </font></div>
                    </blockquote></td>
                  <td width="57%"> <font face="Franklin Gothic Medium, Verdana, Courier New" size="1">
                    <input name="Submit2" id="Submit2" value="<" type="submit">
                    <input name="c1" id="c1" value="1" size="3" type="text">
                    <input name="Submit2" id="Submit2" value=">" type="submit">
                    </font><font face="Franklin Gothic Medium, Verdana, Courier New" size="2">
                    Galaxy</font><font face="Franklin Gothic Medium, Verdana, Courier New" size="1">
                    <br>

                    <font face="Franklin Gothic Medium, Verdana, Courier New" size="1">
                    <input name="Submit" id="Submit" value="<" type="submit">
                    <input name="c2" id="c2" value="181" size="3" type="text">
                    <input name="Submit" id="Submit" value=">" type="submit">
                    </font><font size="2">Galaxy</font> </font></td>
                  <td width="20%"><input name="Submit" value="Show" type="submit"></td>
                </tr>
  

have to sent values to "c1" and "c2" and then simulate pressing "Submit"
tried several ways .. but nothing works ... can anyone help me ? smile


HanPeg HanPeg u BuHaru HanPeg nPu noPa}|{eHue kParoM u nAk HanPeg
#114438 14/03/05 09:03 PM
Joined: Sep 2003
Posts: 6
F
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
F
Joined: Sep 2003
Posts: 6
keep in mind that $crlf is a kind of return key identifier...personally i would just use the URL and enter the values...like url/something.whatever?c1=c1value&c2=c2value

#114439 14/03/05 09:16 PM
Joined: Sep 2004
Posts: 73
S
SteeleR Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Sep 2004
Posts: 73
10x man .. 8 hours in hell and finally make it through smile


HanPeg HanPeg u BuHaru HanPeg nPu noPa}|{eHue kParoM u nAk HanPeg
#114440 14/03/05 09:47 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
lol, i didnt even know there was another way of submitting besides sending the values back on the URL. (well i do actually know there is another way but have never used it, i thought it was a protocol in its own right, and just to much work to warrent)

#114441 14/03/05 10:57 PM
Joined: Jun 2004
Posts: 291
W
Fjord artisan
Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
how do you do it..if not with the url?
ive been wanting to do this for ages >_<

#114442 15/03/05 07:20 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
You use the POST method instead of the GET method, the server must allow it tho.

Its a bit beyond me how to do it with sockets, easy with a http form just change the <form method=get> to <form method=post> but again the server side must accept that type as well.

Below is an estimate of what to do ONLY.

In sockets i believe its like changing from a GET below....

sockwrite -n $sockname GET /somefolder/somepage.php?name=value&name2=value2&name3=value3 HTTP/1.1
sockwrite -n $sockname Host: somedomain.com
sockwrite -n $sockname $crlf

to a POST below

sockwrite -n $sockname POST /somefolder/somepage.php HTTP/1.1
sockwrite -n $sockname Host: somedomain.com
sockwrite -n $sockname $crlf
sockwrite -n $sockname name=value&name2=value2&name3=value3

I may well be completely wrong on this tho frown

#114443 15/03/05 06:54 PM
Joined: Jun 2004
Posts: 291
W
Fjord artisan
Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
awesome ^_^
thanks ill check that out


Link Copied to Clipboard