mIRC Homepage

Bug report

Posted By: Knappen

Bug report - 15/01/03 08:10 AM


I`m currently making a script and i want to have a bugreport form in it (dialog), but I dont`know [censored] about sockets!

Can any1 please help me whith a script that has this?

Posted By: Hammer

Re: Bug report - 15/01/03 06:42 PM

  • [color:black] mailto:
  • HTTP GET - HyperText Transfer Protocol (data in URL)
  • HTTP POST - HyperText Transfer Protocol - (hidden data)
  • Anonymous FTP - File Transfer Protocol
  • SMTP - Simple Mail Transfer Protocol
The design of the script and its data elements is going to depend on which protocol you intend to use to transfer the bug report data. You can send it (via socket) by email (SMTP) or through a web interface (HTTP - the same as <form method=GET|POST action=http://socket.connection.page.to.interpret.the.data.[cgi|asp|php]> on a web page form) or perhaps even by transferring a file (FTP) to a common bug report collection point. If you have a web page (.cgi|.asp|.php) capable of handling data input, then the web page interface is quite likely the easiest to implement. SMTP would require that the user tell the script where there email host is, probably a password to use it as well as writing a mnimal SMTP client engine itself (a non-trivial task); the FTP interface would not be horribly difficult for an ASCII file transfer but would require a minimal FTP client engine (again, a non-trivial task for scripters inexperienced with sockets).

Probably the easiest method would simply to disregard the sockets altogether, build a decent mailto: string and simply open an email to you (or your bug report email alias) from them, using their default email client. You can even format the body of the email nicely (for most well-behaved email clients) with $crlf's (%0D%0A). mailto:Hammer <hammer[/b]@dal.net>?subject=Bug Report for MyScript - Away System&body=When I was trying to set myself away%0D%0Ait wouldn't work!!!!!!

The second easiest method is an HTTP socket to a URL that can handle GET like http://www.site.com/mypage.cgi?topic=Bug...%21%21%21%21%21 and then let your .cgi or .asp or .php script handle the data input. Of course, this method requires the presence of such a script on a web server that can handle that kind of web extension.

Third easiest would be the HTTP socket toa URL that can handle a POST (variables not in the URL itself but in a block that follows the HTTP headers+$crlf) with the same caveat as above.

Next most difficult is probably the FTP script (anonymous login). The basic FTP protocol isn't too difficult to deal with and since you're not writing a full-blown FTP client, you'd only have to make the script deal with the most rudimentary file transfer, though that still requires keeping track of 2 sockets (data + control), rather than one as in the HTTP examples and in the SMTP example to follow.

Finally, SMTP would most likely be the most difficult because most users are not technically adept enough to be able to configure a real STMP client (like Outlook or Eudora) confidently. Therefore, requesting the required information from them and getting everything working (based solely on the data THEY must input to the script) can be quite challenging.

All of these will require that you learn the protocol you choose, however much of it you need to accomplish what you want to do.
Posted By: GK_Kamel

Re: Bug report - 16/01/03 03:51 AM

i made a bug report system for my bot.

on *:text:!bugreport:#:write bugreport.txt < $+ $fulldate $network $+ | $+ $nick $+ >

essentually, what it does is saves it to bugreport.txt -- this can be accessed via an ftp server on my computer (third party, guildftpd to be specific).

i dont know if this will help you at all... but i figured i'd share the info atleast, lol.

good luck smile
Posted By: Knappen

Re: Bug report - 17/01/03 10:05 AM

Thanks for your replies! But it`s not what i`m looking for...
I ment that I want a bugreport script (like in Peace&Protection), but i dont understand how to use sockets...
So what I ment is that I want a script like in P&P...
If any1 can help me with a such script....

Posted By: Aubs

Re: Bug report - 17/01/03 10:14 AM

Am I correct in saying you want to make a dialog with say: Name, Email Address, Script Verison, mIRC Version Problem Encountered.

All those so the user of your script can fil it in, click "Send Bug Report" and send you a bug report to your email/website messageboard?

Something on the lines of this?

Which is virtually what Hammer explained (all be it in much much more detail!)
Posted By: Knappen

Re: Bug report - 20/01/03 12:35 PM

No no no no no no no!!!! That is not what i meen!

I want a bugreport script like that in Peace&Protection that uses sockets and stuff! Not an explination on how sending information works!

Does anyone have a script that they can give me?

Thnx! smile

© 2021 mIRC Discussion Forums