Disable the option 'Use blocking mode (wait for completion)' and moo sock will not pause your app while its 'working'
Printable View
Disable the option 'Use blocking mode (wait for completion)' and moo sock will not pause your app while its 'working'
Hey SEELE, thanks for the input. I'm wondering how a MOOsock request would look with POST data?
POST /somthing.cgi HTTP/1.1
From: SEELE@EVA.com
User-Agent: HTTPTool/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 10
<newline>
somthing=Hello
<newline>
Hi everyone.
It's very interesting : i'm trying to work with MooSock, but, it'hard ^^. I'm not a programmer, i don't know the php or any MySQL protocol...
For example : if i just would like to have the echo of this page : lucas.sonzogni.free.fr/ip.php (it's return the IP of the user), how can i do it with MooSock?
I try
=>connect to "lucas.sonzogni.free.fr/ip.php" on port 80
-On Received => change string01 in "RecvLine$( "MooSock" )"
But it doesn't work...
I try to add
-On Connect :
=>Send Text Line "GET http://lucas.sonzogni.free.fr/ip.php HTTP/1.1"
=>Send Text Line "Host: lucas.sonzogni@free.fr"
=>Send Text Line "Accept: */*"
=>Send Text Line ""
I dont know why i have to add thoose lines, but, anyway, it doesn't work...
Someone can help me?
I Just would like to receive the echo of php pages. This one and others... :(
Thank you.
You must connect to the the host, not the whole address:
For 'http://lucas.sonzogni.free.fr/ip.php' the host is 'lucas.sonzogni.free.fr'
Here is a simple example using the above page:
http://www.mediafire.com/download.php?ft3cjyzkzzd
Awesome ^^
Thank you very much SEELE.
I don't understand lots of toose lines but, anyway, it's working ^^
Thank you.
Thanks for this example SEELE, unfortunately, it seems that the application is frozen when it gets the answer of the WebPage (event without the blocking mode)... for average 5 seconds! :(
That was actually my fault, i used 'get line' where i was supposed to use 'get text'
(i was in a hurry :crazy:)
Here is the same example with the correct expression.
(this should not only have no slowdown. but should also receive MUCH faster)
http://www.mediafire.com/download.php?zmkzymnidum
Yeah!
I was going to ask it but Sphax got there first^^
Now it's working very well.
Thanks you very much SEELE.
Thanks a lot SEELE for this new example! :)
I've easily put MooSock in place of LiveReceiver without any problem.
However, it seems to be necessary to connect/get/disconnect for each data needed. Is that right? In fact, if I don't disconnect it, I can't get more data from the same server.
Am I doing something wrong?