Raised This Month: $ Target: $400
 0% 

Socket


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Xablau
Member
Join Date: Dec 2014
Old 01-16-2015 , 16:46   Socket
Reply With Quote #1

How to get data from page an independent of your size?


In:

PHP Code:
    new g_Socketg_Data[2000], sendbuffer[512]
    
g_Socket socket_open("127.0.0.1"80SOCKET_TCPerror)
    
format(sendbuffer1024"GET /data.php HTTP/1.1^nHost: 127.0.0.1^n^n")
    
socket_send(g_Socketsendbuffer1024)
    
    if (
socket_change(g_Socket))
    {
        
socket_recv(g_Socketg_Data999)
        
server_print("Data: %s"g_Data)
    }
    
socket_close(g_Socket
Is not picking up all the page content, why?
Xablau is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode