PDA

View Full Version : Flash socket connection to HTTP server



dataxa
April 2nd, 2009, 06:08 AM
Code is simple and clear:

rs = new Socket();
rs.connect("kirupa.com",80);
rs.writeUTFBytes("GET / \n");
rs.flush();Most of the servers, including kirupa.com, send response back to me but rapidshare.com is not responding. It connects nicely but gets not response when i send GET command. Have anyone got any clue why rapidshare is not communicating with my flash application, while it communicates nicely with all the browsers.

DfKimera
April 2nd, 2009, 04:20 PM
Try sending two or three more new lines (\n). I tested it on telnet, it only worked after I hit Enter two times.

dataxa
April 3rd, 2009, 07:23 AM
Try sending two or three more new lines (\n). I tested it on telnet, it only worked after I hit Enter two times.

Not working! I had still kirupa.com as address but wont work with rapidshare.

dataxa
April 5th, 2009, 10:02 AM
Can anyone help me on this matter.