|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 (permalink) |
|
Messages: n/a
Hébergeur: |
Can someone please advise me how to send a HTTP request:
http://www.somewebsever.com/http-api...=hello%20world and receive the response? TIA |
|
|
|
#2 (permalink) |
|
Messages: n/a
Hébergeur: |
TreatmentPlant wrote:
> Can someone please advise me how to send a HTTP request: > http://www.somewebsever.com/http-api...=hello%20world > > and receive the response? Someone in a newsgroup related to your OS or internet programming can. V -- Please remove capital 'A's when replying by e-mail I do not respond to top-posted replies, please don't ask |
|
|
|
#3 (permalink) |
|
Messages: n/a
Hébergeur: |
TreatmentPlant wrote:
> Can someone please advise me how to send a HTTP request: > http://www.somewebsever.com/http-api...=hello%20world > > and receive the response? > You need to use a 3rd party library for that.. try to search for one, e.g. http://www.google.com/search?hl=en&q...ry&btnG=Search |
|
|
|
#4 (permalink) |
|
Messages: n/a
Hébergeur: |
On Oct 17, 7:29 am, TreatmentPlant <NoEmailTha...@DieSpammers.com>
wrote: > Can someone please advise me how to send a HTTP request:http://www.somewebsever.com/http-api...er=USER&passwo... > > and receive the response? > > TIA 1)To send a http request, you should first know about the http protocol. There are many sites about the http protocol or refer the rfc. 2)By default in c++, there is no socket library. You need to use 'C' socket libraries. 3)You should either know the ip address/port number or should have dns enabled in your machine. 4)If you know the ip address/port number, you can use it directly in your program or use relevant system calls with the name "somewebserver"(gethostent/gethostbyaddr.....). 5)Finally, create a client program(since you sending to a server), send the http request and get the response from the server(also in http format). This is just in-brief. Days together of lectures can be provided on this topic. Thanks, Balaji. |
|
|
|
#5 (permalink) |
|
Messages: n/a
Hébergeur: |
kasthurirangan.balaji@gmail.com wrote:
> On Oct 17, 7:29 am, TreatmentPlant <NoEmailTha...@DieSpammers.com> > wrote: > > Can someone please advise me how to send a HTTP > > request > 2)By default in c++, there is no socket library. You need to use 'C' > socket libraries. By default in C, there is no socket library either. In practice, different implementations have ones that can differ by various amounts. Brian |
|
![]() |
| Outils de la discussion | |
|
|