mIRC Homepage

Socket ('Post' Formulare) need hlp :/

Posted By: CaNNoN

Socket ('Post' Formulare) need hlp :/ - 04/06/03 12:27 PM

how can i transfer datas from a formulare per 'post' with sockets ?


big thanks for help
Posted By: Online

Re: Socket ('Post' Formulare) need hlp :/ - 04/06/03 12:56 PM

Maybe this thread will help.
Posted By: Adrenalin

Re: Socket ('Post' Formulare) need hlp :/ - 04/06/03 01:05 PM

At http://helpdesk.zaz.net/documents/socks.php you will finde the answer.
Posted By: CaNNoN

Re: Socket ('Post' Formulare) need hlp :/ - 04/06/03 04:00 PM

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
Posted By: Online

Re: Socket ('Post' Formulare) need hlp :/ - 04/06/03 04:23 PM

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
}
Posted By: Online

Re: Socket ('Post' Formulare) need hlp :/ - 04/06/03 06:29 PM

oops, I'd thank the moderator who'd edit my post and add a closing [/[b][/b]code].
© 2020 mIRC Discussion Forums