Questions tagged [wxhttp]

5 questions
5
votes
2 answers

wxHTTP & Threads

I have some problems with using wxHTTP inside a Thread. I have created below class which derive from wxThread to use wxHTTP. class Thread : public wxThread { private: wxHTTP get; public: Thread() { } ~Thread() { } virtual ExitCode Entry() { …
fex
  • 3,488
  • 5
  • 30
  • 46
1
vote
1 answer

wxwidget - WxHTTP - Check for Internet connection first

Referring to sample https://wiki.wxwidgets.org/WxHTTP#Basic_Usage #include #include wxHTTP get; get.SetHeader(_T("Content-type"), _T("text/html; charset=utf-8")); get.SetTimeout(10); // 10 seconds of timeout…
Amod Gokhale
  • 2,346
  • 4
  • 17
  • 32
1
vote
2 answers

Posting to a URL with wxWidgets

Does anyone have some sample code showing how to POST to a URL using wxWidgets? The documentation and discussion forums imply that it's possible but the methods in wxHTTP are very low-level compared to what you find in .NET and scripting languages…
acfrancis
  • 3,569
  • 25
  • 21
0
votes
1 answer

Downloading file with wxHTTP?

Im really stumped. Im using the wxHTTP class in wxWidgets to try and download two files. The first request succeeds but the second one fails when wxHTTP->GetInputStream is called. Between downloads, the wxInputStream from the first call is freed.…
Nathan Osman
  • 71,149
  • 71
  • 256
  • 361
0
votes
1 answer

XHTTP does not allow Accept header to specify JSON?

I'm hosting a mvc4 REST web api and I have a particular client that is using XHTTP (please don't ask why). However, it turns out that XHTTP is stripping off the "Accept" header and the client is trying to specify the request to come back as json. …
genxgeek
  • 13,109
  • 38
  • 135
  • 217