473,408 Members | 2,032 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

HTTP connection library in C ??

hello all ..
I wish to know about HTTP connection library in C .. Is there any
library which can establish HTTP connections for my application and
read the file returned from the server ? I dont wanna use sockets as
it is time consuming ...
In java I can do that by java.net.URL class, Is there any such
facility in C even if its some external library and not a standard
library ...
Thanks for listening , I will be waiting in anticipation
dipen

Jun 24 '07 #1
10 3807
On Jun 24, 8:37 am, dipen chaudhary <dipe...@gmail.comwrote:
hello all ..
I wish to know about HTTP connection library in C .. Is there any
library which can establish HTTP connections for my application and
read the file returned from the server ? I dont wanna use sockets as
it is time consuming ...
In java I can do that by java.net.URL class, Is there any such
facility in C even if its some external library and not a standard
library ...
Thanks for listening , I will be waiting in anticipation
dipen
There are no standard libraries in C for that. You will have
to ask in the newsgroup meant for the compiler/platform you're using.
-Sharath

comp.lang.c FAQs: http://c-faq.com
Orkut C FAQs: http://prokutfaq.byethost15.com/CFAQ

Jun 24 '07 #2
On Jun 24, 8:37 am, dipen chaudhary <dipe...@gmail.comwrote:
hello all ..
I wish to know about HTTP connection library in C .. Is there any
library which can establish HTTP connections for my application and
read the file returned from the server ? I dont wanna use sockets as
it is time consuming ...
In java I can do that by java.net.URL class, Is there any such
facility in C even if its some external library and not a standard
library ...
Thanks for listening , I will be waiting in anticipation
dipen
I found libwww on google code search .. But I think Its very broad for
my use .. Any customization possible ? I dont need all mysql support :(

Jun 24 '07 #3
dipen chaudhary wrote:
hello all ..
I wish to know about HTTP connection library in C .. Is there any
library which can establish HTTP connections for my application and
read the file returned from the server ? I dont wanna use sockets as
it is time consuming ...
While OT here, all you require is a thin layer over sockets to do what
you want to do. A good learning exercise.
In java I can do that by java.net.URL class, Is there any such
facility in C even if its some external library and not a standard
library ...
You'd have to ask in a group for you platform.

--
Ian Collins.
Jun 24 '07 #4
dipen chaudhary wrote:
hello all ..
I wish to know about HTTP connection library in C .. Is there any
library which can establish HTTP connections for my application and
read the file returned from the server ? I dont wanna use sockets as
it is time consuming ...
In java I can do that by java.net.URL class, Is there any such
facility in C even if its some external library and not a standard
library ...
Thanks for listening , I will be waiting in anticipation
dipen
lcc-win32 proposes a network library with
GetHttpUrl(char *url,char *destination_file);

There are other similar functions for ftp.
Jun 24 '07 #5
On Jun 24, 9:13 am, Ian Collins <ian-n...@hotmail.comwrote:
dipen chaudhary wrote:
hello all ..
I wish to know about HTTP connection library in C .. Is there any
library which can establish HTTP connections for my application and
read the file returned from the server ? I dont wanna use sockets as
it is time consuming ...

While OT here, all you require is a thin layer over sockets to do what
you want to do. A good learning exercise.
In java I can do that by java.net.URL class, Is there any such
facility in C even if its some external library and not a standard
library ...

You'd have to ask in a group for you platform.

--
Ian Collins.
My platform is linux .. Ok I will try there .. thanks for helping
though

Jun 24 '07 #6
On Jun 24, 11:53 am, jacob navia <j...@jacob.remcomp.frwrote:
dipen chaudhary wrote:
hello all ..
I wish to know about HTTP connection library in C .. Is there any
library which can establish HTTP connections for my application and
read the file returned from the server ? I dont wanna use sockets as
it is time consuming ...
In java I can do that by java.net.URL class, Is there any such
facility in C even if its some external library and not a standard
library ...
Thanks for listening , I will be waiting in anticipation
dipen

lcc-win32 proposes a network library with
GetHttpUrl(char *url,char *destination_file);

There are other similar functions for ftp.
hi jacob ..
I think thats wot I want .. Do they have anything for linux ?
lcc-win32 looks like a windows library .. anyways I will find out ...
thanks ..

Jun 24 '07 #7


dipen chaudhary wrote:
hello all ..
I wish to know about HTTP connection library in C .. Is there any
library which can establish HTTP connections for my application and
read the file returned from the server ? I dont wanna use sockets as
it is time consuming ...
In java I can do that by java.net.URL class, Is there any such
facility in C even if its some external library and not a standard
library ...
Thanks for listening , I will be waiting in anticipation
dipen
What you need is libcurl - look it up in Google
Jun 24 '07 #8
On Jun 24, 6:14 pm, Bartholomew Simpson <123evergr...@terrace.com>
wrote:
dipen chaudhary wrote:
hello all ..
I wish to know about HTTP connection library in C .. Is there any
library which can establish HTTP connections for my application and
read the file returned from the server ? I dont wanna use sockets as
it is time consuming ...
In java I can do that by java.net.URL class, Is there any such
facility in C even if its some external library and not a standard
library ...
Thanks for listening , I will be waiting in anticipation
dipen

What you need is libcurl - look it up in Google
thanks ..
I think thats wot I want ..

Jun 24 '07 #9
On Jun 24, 6:14 pm, Bartholomew Simpson <123evergr...@terrace.com>
wrote:
dipen chaudhary wrote:
hello all ..
I wish to know about HTTP connection library in C .. Is there any
library which can establish HTTP connections for my application and
read the file returned from the server ? I dont wanna use sockets as
it is time consuming ...
In java I can do that by java.net.URL class, Is there any such
facility in C even if its some external library and not a standard
library ...
Thanks for listening , I will be waiting in anticipation
dipen

What you need is libcurl - look it up in Google
http://curl.haxx.se/libcurl/competitors.html

this is a pool of simillar libraries .. thanks a lot

Jun 24 '07 #10
dipen chaudhary wrote:
hello all ..
I wish to know about HTTP connection library in C .. Is there any
library which can establish HTTP connections for my application and
read the file returned from the server ? I dont wanna use sockets as
it is time consuming ...
In java I can do that by java.net.URL class, Is there any such
facility in C even if its some external library and not a standard
library ...
Thanks for listening , I will be waiting in anticipation
dipen
Does libcurl do what you want?
--
clvrmnky <mailto:sp******@clevermonkey.org>

Direct replies will be blacklisted. Replace "spamtrap" with my name to
contact me directly.
Jun 25 '07 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
4
by: Ron | last post by:
Hello, I keep getting a runtime error with the following ado routine that I run from a VB6 app - note: I tried it with ref to mdac2.6 and mdac2.7 and mdac2.8. This worked once, but it doesn't...
3
by: paulo | last post by:
Hello, I'm developing a web services apllication using SQL Server in mixed mode. I'm also using WSE 3.0. For each user in the application there's a corresponding user on the database. The...
3
by: ad | last post by:
I have a web application and a class library in a solution. The class library is make of typed datasets, and include many Table in it. The connection strings of the TableAdapters is come from...
7
by: galico | last post by:
Hi All, We are having a very strange problem with the above. We have designed an application in ASP.NET 2.0 that uses the enterprise library data application blocks amongst others. We seem to be...
10
by: rup | last post by:
Hello, This is my first application on socket programming in vc++. I am facing problem that how to make connection to server, & make GET/POST request by HTTP. Please help me. Its urgent.......
2
Frinavale
by: Frinavale | last post by:
Hello everyone! I'm having a problem securing my connection string. There are a lot of sites out there that explain how to secure a connection string in the Web.config or App.config file;...
5
by: OJ | last post by:
Hi, I am at a loss here, I have a c# asp.net website which connects to a remote SQL Server 2000 db via a connection string. If I set the website up in the filesystem and use the inbuilt cassini...
7
by: Guy Davidson | last post by:
Hi Folks, I'm having some issues with an small socket based server I'm writing, and I was hoping I could get some help. My code (attached below) us supposed to read an HTTP Post message...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.