PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.cplus > Sending and Receiving HTTP data.... newbie
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Sending and Receiving HTTP data.... newbie

Réponse
 
LinkBack Outils de la discussion
Vieux 17/10/2007, 03h29   #1 (permalink)
TreatmentPlant
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Sending and Receiving HTTP data.... newbie

Can someone please advise me how to send a HTTP request:
http://www.somewebsever.com/http-api...=hello%20world

and receive the response?


TIA
  Réponse avec citation
Vieux 17/10/2007, 04h37   #2 (permalink)
Victor Bazarov
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sending and Receiving HTTP data.... newbie

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


  Réponse avec citation
Vieux 17/10/2007, 09h28   #3 (permalink)
mliptak
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sending and Receiving HTTP data.... newbie

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

  Réponse avec citation
Vieux 17/10/2007, 15h32   #4 (permalink)
kasthurirangan.balaji@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sending and Receiving HTTP data.... newbie

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.

  Réponse avec citation
Vieux 17/10/2007, 18h39   #5 (permalink)
Default User
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sending and Receiving HTTP data.... newbie

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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h51.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08915 seconds with 13 queries