Click here to Skip to main content
15,887,915 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Convert function to read from string instead of file in C Pin
Richard MacCutchan6-Jul-22 1:19
mveRichard MacCutchan6-Jul-22 1:19 
QuestionRe: Convert function to read from string instead of file in C Pin
David Crow6-Jul-22 4:38
David Crow6-Jul-22 4:38 
QuestionConvert curl request Pin
_Flaviu4-Jul-22 3:14
_Flaviu4-Jul-22 3:14 
AnswerRe: Convert curl request Pin
k50544-Jul-22 4:39
mvek50544-Jul-22 4:39 
GeneralRe: Convert curl request Pin
_Flaviu4-Jul-22 4:52
_Flaviu4-Jul-22 4:52 
GeneralRe: Convert curl request Pin
k50544-Jul-22 5:25
mvek50544-Jul-22 5:25 
GeneralRe: Convert curl request Pin
_Flaviu4-Jul-22 5:43
_Flaviu4-Jul-22 5:43 
GeneralRe: Convert curl request Pin
k50544-Jul-22 6:17
mvek50544-Jul-22 6:17 
For some reason, I was assuming you were using linux. If you're on windows, there's no getline in the C stdio library, so you'll have to use fgets() or another C stdio FILE i/o function.

It might be a better choice to use the libcurl API directly. Or another C/C++ client library. A quick google search turned up Windows HTTP Services - Win32 apps | Microsoft Docs , but that appears to be a Win32 API, so may not be applicable to your situation. There's also GitHub - embeddedmz/httpclient-cpp: C++ client for making simple HTTP requests which might work for you too. I have not tried this package, so cannot speak to its quality or suitability for any purpose, what so ever. Caveat usor.
Keep Calm and Carry On

GeneralRe: Convert curl request Pin
_Flaviu4-Jul-22 7:10
_Flaviu4-Jul-22 7:10 
GeneralRe: Convert curl request Pin
k50544-Jul-22 7:17
mvek50544-Jul-22 7:17 
GeneralRe: Convert curl request Pin
_Flaviu4-Jul-22 7:31
_Flaviu4-Jul-22 7:31 
GeneralRe: Convert curl request Pin
Richard MacCutchan4-Jul-22 9:21
mveRichard MacCutchan4-Jul-22 9:21 
GeneralRe: Convert curl request Pin
_Flaviu4-Jul-22 19:48
_Flaviu4-Jul-22 19:48 
GeneralRe: Convert curl request Pin
k50544-Jul-22 9:26
mvek50544-Jul-22 9:26 
QuestionAmazing C/C++ and C# and Python performance test Pin
Code4Ever2-Jul-22 6:48
Code4Ever2-Jul-22 6:48 
AnswerRe: Amazing C/C++ and C# and Python performance test Pin
Gerry Schmitz2-Jul-22 7:02
mveGerry Schmitz2-Jul-22 7:02 
AnswerRe: Amazing C/C++ and C# and Python performance test PinPopular
harold aptroot2-Jul-22 7:38
harold aptroot2-Jul-22 7:38 
AnswerRe: Amazing C/C++ and C# and Python performance test Pin
CPallini2-Jul-22 11:07
mveCPallini2-Jul-22 11:07 
Questionimage background datagrid Pin
ousaokn30-Jun-22 19:26
ousaokn30-Jun-22 19:26 
AnswerRe: image background datagrid Pin
Victor Nijegorodov30-Jun-22 20:11
Victor Nijegorodov30-Jun-22 20:11 
AnswerRe: image background datagrid Pin
Gerry Schmitz1-Jul-22 4:21
mveGerry Schmitz1-Jul-22 4:21 
QuestionFile IO library Pin
Calin Negru26-Jun-22 3:45
Calin Negru26-Jun-22 3:45 
AnswerRe: File IO library Pin
Greg Utas26-Jun-22 4:21
professionalGreg Utas26-Jun-22 4:21 
GeneralRe: File IO library Pin
Calin Negru26-Jun-22 11:17
Calin Negru26-Jun-22 11:17 
AnswerRe: File IO library Pin
k505426-Jun-22 4:21
mvek505426-Jun-22 4:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.