how can i implement Socket connection as Http ?

Login to reply to this topic.
Thu, 2005-05-26 07:25
Joined: 2005-02-22
Forum posts: 39
Hi

i have establised a HTTP connection in my application to upload a file to server but now want to (do to some resons ) establish a
Socket connection  with server .... So can any buddy tell me how can i implemnet Socket connection as HTTP  to upload the file to server

Any Pointers will be of great help

Regards
veeraj 

Fri, 2005-05-27 10:47
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 723
Re: how can i implement Socket connection as Http ?
Use Symbian's HTTP framework instead of re-inventing the wheel. RHttpSession, RHttpTransaction are the most important keywords for you.

Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

Fri, 2005-05-27 13:00
Joined: 2005-02-22
Forum posts: 39
Re: how can i implement Socket connection as Http ?
Thanks 

But i want to port my application on series 60_v1.2 from series 60_v2.0 so so no RHttpTransaction or
RHttpSession

Regards
veeraj   
Fri, 2005-05-27 14:32
Joined: 2005-05-11
Forum posts: 83
Re: how can i implement Socket connection as Http ?
Then you must create socket. Connect to port 80. Send Get or Post request to server. And receive data (if get). You must read standart for HTTP protocol.
Mon, 2005-05-30 13:43
Joined: 2005-02-22
Forum posts: 39
Re: how can i implement Socket connection as Http ?

thanks .. i will try that way

any other pointer will be of great help

thanks and regards
veeraj thaploo 
Tue, 2005-05-31 07:37
Joined: 2003-05-08
Forum posts: 135
Re: how can i implement Socket connection as Http ?
Search the web for the HTTP RFC.  It will give you all the information about the protocol.  The socket part is easy.  I've done this for ftp in the past as well as for simple http transfers.

The box said 'Windows 98 or better'. Why is it not working on Linux?

Wed, 2005-07-06 05:20
Joined: 2004-12-23
Forum posts: 9
Re: how can i implement Socket connection as Http ?
Hi  cfm,

I just read the post that you had implemented simple HTTP transfers using Sockets. I'm trying to implement a simple HTTP GET using the sockets could you please guide me as to how to achieve this.

Regards,

Kamal Singhania
Wed, 2005-07-06 07:55
Joined: 2005-05-11
Forum posts: 83
Re: how can i implement Socket connection as Http ?
Try to use sniffer to see format of http packet. For example try connect to www.newlc.com using your browser. And then try to send this packet use socket
Wed, 2005-07-06 08:44
Joined: 2004-12-03
Forum posts: 192
Re: how can i implement Socket connection as Http ?
http://www.faqs.org/rfcs/

very useful to find the descriptions of protocols
Wed, 2005-07-06 10:01
Joined: 2003-05-08
Forum posts: 135
Re: how can i implement Socket connection as Http ?
Quote from: kamalsinghania
I just read the post that you had implemented simple HTTP transfers using Sockets. I'm trying to implement a simple HTTP GET using the sockets could you please guide me as to how to achieve this.

Search the web for the HTTP RFC and read it.  It will give you the requests that you must send as well as the response that you can expect from the server.  It is not difficult to find the RFC or to understand the basics.

The box said 'Windows 98 or better'. Why is it not working on Linux?

Mon, 2005-08-08 03:59
Joined: 2004-12-23
Forum posts: 9
Re: how can i implement Socket connection as Http ?
Hi,

Thnx for the reply.

I've implemented the GET command from the HTTP RFC and am successfully able to download text files like HTML and XML. But I've a problem getting the Binary files lilke EXEs. Is there anything else need to be done to get EXE files or is there any kind of data conversion required for bianry files.
Mon, 2005-08-08 10:08
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 723
Re: how can i implement Socket connection as Http ?
Nothing I am aware of. EXEs can be downloaded the same way as HTML, XML, etc. files. What is your problem, anyway?

Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

Fri, 2005-08-12 17:30
Joined: 2005-06-08
Forum posts: 53
Re: how can i implement Socket connection as Http ?
it is maybe about the HTTP/Accept

like

text/html
image/jpg
*/*
  • Login to reply to this topic.