Using PJLIB for generating HTTP GET request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 9, 2008 at 3:24 PM, girish_kumar <girish_kumar at infosys.com>wrote:

>  Hi,
>
>
>
> I am using PJSIP stack in a softphone application and want to check
> internet connection before initializing the stack. For this internet
> connection check, I am planning to send an HTTP GET to a web server and see
> if it replies with a 200 OK response.
>
>
>
> Can I develop such a utility using just PJLIB and PJLIB-UTIL features? If
> yes, can anyone please provide some pointers on the approach I should take
> for building this? Is there any similar utility or example code based on
> PJLIB I can use?
>

While we don't have HTTP samples, this would be similar to the usual client
socket programming, so once you know how to do it with using BSD socket API,
it should be trivial to map that API into PJLIB socket API.

 -benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080909/d5c55540/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux