| Blockland Forums > Modification Help |
| Revenge of the TCP object [Solved] |
| << < (15/16) > >> |
| Ipquarx:
--- Quote from: Kalphiter on May 09, 2012, 03:11:12 PM ---missing an \r --- End quote --- It worked perfectly on all the websites I tried, and works on both mac and PC. |
| jes00:
--- Quote from: Ipquarx on May 09, 2012, 12:52:36 PM ---Try this. --- End quote --- --- Quote from: Kalphiter on May 09, 2012, 03:11:12 PM ---missing an \r --- End quote --- They both return the same result: 1: 2: 3: 8369 4: HTTP/1.1 200 OK 1: 2: 3: 8369 4: Server: nginx/1.0.14 1: GMT 2: G 3: 8369 4: Date: Thu, 10 May 2012 11:23:37 GMT 1: 2: 3: 8369 4: Content-Type: text/plain; charset=ascii 1: 2: 3: 8369 4: Connection: keep-alive 1: 2: 3: 8369 4: content-length: 22 1: 2: 3: 8369 4: x-robots-tag: noindex,nofollow 1: 2: 3: 8369 4: accept-ranges: bytes 1: 2: 3: 8369 4: etag: 23n 1: 2: 3: 8369 4: pragma: public 1: 2: 3: 8369 4: cache-control: max-age=0 1: 2: 3: 8369 4: --- Code: (With Kalphiter's \r) --- %file = "/u/74047590/ColorSetMaker_Version.txt"; %server = "dl.dropbox.com"; %req = "GET " @ %File @ " HTTP/1.1\r\nHost: " @ %Server @ "\r\n\r\n"; --- End code --- |
| Ephialtes:
Not sure why people are still trying to "fix" the request structure - the fact that it's displaying a content-length header of 22 and not actually displaying content indicates you've forgeted up your code. Remove the disconnect() calls in your script and see what happens. |
| jes00:
--- Quote from: Ephialtes on May 10, 2012, 09:28:47 AM ---Not sure why people are still trying to "fix" the request structure - the fact that it's displaying a content-length header of 22 and not actually displaying content indicates you've forgeted up your code. Remove the disconnect() calls in your script and see what happens. --- End quote --- No result, your wisdom is appreciated. |
| jes00:
--- Quote from: Greek2me on May 06, 2012, 03:07:28 PM ---I made a free site on http://www.webs.com/ and use that to host my stuff: http://greekmods.webs.com/mods/Gamemode_Slayer/Updater/version_Release.txt http://greekmods.webs.com/mods/Gamemode_Slayer/Updater/changeLog_Release.txt http://greekmods.webs.com/mods/Gamemode_Slayer/Help/help_Release.txt --- End quote --- I made one, now how do I host txt files like that? EDIT: Never mind, I found how. |
| Navigation |
| Message Index |
| Next page |
| Previous page |