User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 18 of 18

Thread: MooSock and PHP problem...

  1. #11
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MooSock and PHP problem...

    Hi everybody!

    Just a little follow up. It might help someone someday.

    I tried a few solutions but the one that (still) works is using Send text line instead of Send text.

    So...

    Send text line "GET http://my_server.com/data/myfile.php?filename=rezu.csv&heypsst=ecpelpw&donne e=" + Edittext$( "Edit Rezu" )
    Send text line "HTTP/1.0"
    Send text line "From: mehere@now.com"
    Send text line "User-Agent: HTTPTool/1.0"
    Sent text line " "

    ... seems to work just fine!

    Thanks a lot for your help, guys!

    Michel Bastien

  2. #12
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MooSock and PHP problem...

    That's probably the best way - otherwise you risk sticking fields together without meaning to.

  3. #13
    No Products Registered

    Join Date
    Jun 2006
    Posts
    220
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MooSock and PHP problem...

    Using HTTP/1.1 can solve it sometimes too.

    Send text line "GET /score.php HTTP/1.1"
    Send text line "Host: www.myserver.com"
    Send text line ""

    Takes up less lines - and will retrieve the page www.myserver.com/score.php

  4. #14
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MooSock and PHP problem...

    I see!

    It goes the same way as suggested by Dynasoft. 'Didn't try it. I will...

  5. #15
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MooSock and PHP problem...

    btw, don't put http:// in the address, it's the forum adding it not us!

  6. #16
    No Products Registered

    Join Date
    Jun 2006
    Posts
    220
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MooSock and PHP problem...

    From experience, putting http:// doesn't affect it anyway. May effect it for different servers, but for ectoprods.com it doesn't.

    The only place you can't put http:// is in the connect event.
    So connect to ww.myserver.com.

    But when sending text lines, I don't think using HTTP causes a problem (not for me anyway). Although really, there is no point in using the HTTP bit because it takes up time to type it :P

  7. #17
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MooSock and PHP problem...

    you put HTTP at the beginning and it doesnt matter, its removed by the webserver but netsniff a popular browser and you will find that it puts http:// at the beginning as specified in the HTTP/1.1 protocol

  8. #18
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MooSock and PHP problem...

    HTTP/1.1 official definition: http://www.w3.org/Protocols/rfc2616/rfc2616.html

    It says that a HTTP/1.1 server is REQUIRED to accept an absolute URI (i.e. "GET http://www.server/page HTTP/1.1"), but HTTP/1.1 client apps SHOULD (note that they don't say "must" or "must not") only use this form when contacting proxy servers. So technically you're right in that it works, but officially you shouldn't use it unless you're talking to a proxy.

    It does specifically disallow putting http:// in the host: header though.

    Also, seems most web servers (seen both iis and apache do it) respond to a HTTP/1.0 request with a HTTP/1.1 response, which is completely against the http specification.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Moosock Transfer Files problem
    By Dagge in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 5th July 2010, 10:03 PM
  2. Using MooSock......
    By pinacoladaxb in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 13th May 2008, 08:45 PM
  3. Moosock and php
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 28th April 2007, 01:53 PM
  4. MooSock Connection Problem
    By Hezkore in forum File Archive
    Replies: 5
    Last Post: 5th April 2007, 07:08 PM
  5. MooSock & UDP
    By jdv in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 26th July 2006, 12:49 AM

Posting Permissions

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