mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2003
Posts: 15
C
CaNNoN Offline OP
Pikka bird
OP Offline
Pikka bird
C
Joined: Feb 2003
Posts: 15
how can i transfer datas from a formulare per 'post' with sockets ?


big thanks for help

Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Maybe this thread will help.

Joined: Apr 2003
Posts: 414
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
At http://helpdesk.zaz.net/documents/socks.php you will finde the answer.


mIRC Chm Help 6.16.0.3 Full Anchored!
Joined: Feb 2003
Posts: 15
C
CaNNoN Offline OP
Pikka bird
OP Offline
Pikka bird
C
Joined: Feb 2003
Posts: 15
thx.. i tried it .. but it won't work smirk ->

Code:
on *:Sockopen:sidebar.sms:{
  var %data = head1=&an1=43676&an2=<mobile#>&msg=hYa
  if ($sockerr) { echo -a Es konnte keine Verbindung aufgebaut warden. Eventuell sind IP/Host oder Port nich korrekt. | halt }
  .sockwrite -n $sockname GET /CDA/login/login_user_tr/1,2767,786-789-html-de,00.html?RefererUrl=&RefererType=&RefererId=&AppId=1&intLoginNumer=1&userid=CaNNoN.Itarium&password=31-01-1989 HTTP/1.1
  .sockwrite -n $sockname Host: www.a1.net
  .sockwrite -n $sockname POST /CDA/phase3/sms/0,2818,14-813-html-de,00.html
  .sockwrite -n $sockname form Connection: close  
  .sockwrite -n $sockname form Content-Type: application/x-www-form-urlencoded  
  .sockwrite -n $sockname form Content-Length: $len(%data)
  .sockwrite -n $sockname GET /sms_ergebnis/0,2857,14-813-sent-html-de,00.html
  .sockwrite -n $sockname form  
  .sockwrite -n $sockname form %data
  .echo -s sms versandt
}
alias sms.sender {
  .sockopen sidebar.sms www.a1.net 80 
}


can you pls help me again ? smile

Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
A single HTTP request will be either of the methods. You can't mix both.

"/sms_check_tr/1,2855,14-813-sent-html-de,00.html" is the page on which the form acts, as defined by the <form action="..."> tag. Just make sure the variables are correct.[code]On *:sockopen:sidebar.sms:{
var %data = head1=&an1=43676&an2=<mobile#>&msg=hYa
 
sockwrite -n $sockname POST /sms_check_tr/1,2855,14-813-sent-html-de,00.html HTTP/1.0
sockwrite -n $sockname Host: w[b][/b]ww.a1.net
sockwrite -n $sockname Content-Type: application/x-www-form-urlencoded
sockwrite -n $sockname Content-Length: $len(%data)
sockwrite -n $sockname
sockwrite $sockname %data
}

Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
oops, I'd thank the moderator who'd edit my post and add a closing [/[b][/b]code].


Link Copied to Clipboard