Results 1 to 11 of 11

Thread: Problem - Winsock or Host?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2008
    Posts
    353

    Problem - Winsock or Host?

    Hi guys,


    i have a proeblem on some hosts when i POST with winsock...and if i have a string in the message like "WORD1&WORD2" the message gets posted on the host only till the "WORD1"

    I dont know why is that...all other hosts work fine

    Could it be becasue of the database collation....? or winsock? or the hosts's php headers????

    Cheers
    Thanks for helping me out.

  2. #2
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: Problem - Winsock or Host?

    You know the rules, batori. No code, no can help.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2008
    Posts
    353

    Re: Problem - Winsock or Host?

    well tthe code is really secondary here...


    i dont know where to put this topic...

    it has to do with html encoding and vb xD

    there is no code but the standart post method with winscock .. the thing is that the code arrives to all vbulletin boards but not phpbb3 based when u have the & char in the message..that's the whole story....

    Even with urlencode before psoting does not solve the problem... hmmm
    Thanks for helping me out.

  4. #4
    Frenzied Member Jim Davis's Avatar
    Join Date
    Mar 2001
    Location
    Mars base one Username: Jim Davis Password: yCrm33
    Posts
    1,284

    Re: Problem - Winsock or Host?

    Will your urlencode replace the & amp to %26? If not, just do it.

    the thing is that the code arrives to all vbulletin boards but not phpbb3 based
    If you just work on a forum spam/flooder program, please dont do it.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2008
    Posts
    353

    Re: Problem - Winsock or Host?

    Please...

    You dont know what app is that...it cannot flood...i tought you would know that..because there is a time limit...

    and im doing it for my board...and i have a whitelist of people to use it...

    It cannot spam or anything like that...it's a simulation of real posting....

    Only members with FLOOD TIME disabled can post alot...


    That's was not the point...

    The point is that...the subject when encoded comes good....but the message is not...

    i dont think that's related to winsock or vb...but i dont have any idea what could that be ...

    p.s my app is ready for vbulletin , phpbb2 and other forums...and people are using it...it's a good thing for posters...(warez)
    Thanks for helping me out.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2008
    Posts
    353

    Re: Problem - Winsock or Host?

    I did replace

    as the code fdor urlencode does :

    & = %26

    still nothing... :S
    Thanks for helping me out.

  7. #7
    Frenzied Member Jim Davis's Avatar
    Join Date
    Mar 2001
    Location
    Mars base one Username: Jim Davis Password: yCrm33
    Posts
    1,284

    Re: Problem - Winsock or Host?

    Might be because phpbb3 uses some kind of special encoding of these special commas in textareas. Look for the refence docs to see what it is does. You may also want to inspect any javascript that is related the textarea in phpbb3

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2008
    Posts
    353

    Re: Problem - Winsock or Host?

    Ahh i didnt find anything...

    I witched to encoding (header) to text/html ; iso , and text/html as phpbb2 has...but i see winsock sending all the data i gave him to sent...but the data is just not coming as should be.... funny thing is that phpbb2 works fine xD
    Thanks for helping me out.

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2008
    Posts
    353

    Re: Problem - Winsock or Host?

    str = "®––"

    Winsock wont send that str string
    It sends this : str = "®â â "

    Any ideas

    and i can send the ® char only if i send it like this : ®

    any ideas?
    Thanks for helping me out.

  10. #10
    Hyperactive Member
    Join Date
    Feb 2008
    Posts
    327

    Re: Problem - Winsock or Host?

    Quote Originally Posted by batori
    str = "®––"

    Winsock wont send that str string
    It sends this : str = "®â â "

    Any ideas

    and i can send the ® char only if i send it like this : ®

    any ideas?
    perhaps u could convert the char to hex and send it.. ® ="AE" in hex . so.. ®–– becomes "C2 AE E2 80 93 E2 80 93 "... i think so many char lose their value when u copy and paste it..

  11. #11

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2008
    Posts
    353

    Re: Problem - Winsock or Host?

    Sure m8, i will try it..thanks for the help
    Thanks for helping me out.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width