mIRC Home    About    Download    Register    News    Help

Topic Options
#28078 - 04/06/03 01:27 PM Socket ('Post' Formulare) need hlp :/
CaNNoN Offline
Pikka bird

Registered: 09/02/03
Posts: 15
how can i transfer datas from a formulare per 'post' with sockets ?


big thanks for help

Top
#28079 - 04/06/03 01:56 PM Re: Socket ('Post' Formulare) need hlp :/
Online Offline
Hoopy frood

Registered: 09/12/02
Posts: 1922
Maybe this thread will help.

Top
#28080 - 04/06/03 02:05 PM Re: Socket ('Post' Formulare) need hlp :/
Adrenalin Offline
Fjord artisan

Registered: 18/04/03
Posts: 414
Loc: Moldova
At http://helpdesk.zaz.net/documents/socks.php you will finde the answer.
_________________________
mIRC Chm Help 6.16.0.3 Full Anchored!

Top
#28081 - 04/06/03 05:00 PM Re: Socket ('Post' Formulare) need hlp :/
CaNNoN Offline
Pikka bird

Registered: 09/02/03
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

Top
#28082 - 04/06/03 05:23 PM Re: Socket ('Post' Formulare) need hlp :/
Online Offline
Hoopy frood

Registered: 09/12/02
Posts: 1922
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
}

Top
#28083 - 04/06/03 07:29 PM Re: Socket ('Post' Formulare) need hlp :/
Online Offline
Hoopy frood

Registered: 09/12/02
Posts: 1922
oops, I'd thank the moderator who'd edit my post and add a closing [/[b][/b]code].

Top