GET + SOCKET + HTTP

Login to reply to this topic.
Wed, 2006-12-13 02:00
Joined: 2006-08-21
Forum posts: 39
Hi,

I want to download an image from a http server via RSocket.
How should GET request look like?

url:  http://www.someurl.com/test.png

tried following but didnt help:

iRequest.Copy(_L8("GET / HTTP/1.0\r\n\r\n"));
iRequest.Copy(_L8("GET /test.png HTTP/1.0\xD\xA\xD\xA"));
iRequest.Copy(_L8("GET /test.png HTTP/1.0\r\n\r\n"));

Thanks ahead guys Smiley


 

Wed, 2006-12-13 06:45
Joined: 2006-10-07
Forum posts: 131
Re: GET + SOCKET + HTTP
Use HTTP client instead.
Wed, 2006-12-13 08:20
Joined: 2006-08-21
Forum posts: 39
Re: GET + SOCKET + HTTP
Quote from: sysctl
Use HTTP client instead.

for some reason i have to use socket.
Wed, 2006-12-13 09:02
Joined: 2006-10-07
Forum posts: 131
Re: GET + SOCKET + HTTP
OK.

But anyway, you'd have to describe your problem in a bit more detail (socket code, your problem symptoms, etc) to get any help as your HTTP request strings are correct.
Wed, 2006-12-13 14:38
Joined: 2006-08-21
Forum posts: 39
Re: GET + SOCKET + HTTP
Quote from: sysctl
OK.

But anyway, you'd have to describe your problem in a bit more detail (socket code, your problem symptoms, etc) to get any help as your HTTP request strings are correct.

Solved: Image path was incorrect Tongue
Thanks 
  • Login to reply to this topic.