0

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. Any ideas?

Edit - Here is some pseudocode:

wxHTTP * http = new wxHTTP();
// connect to www.example.com
wxInputStream* in = http->GetInputStream(wxT("page"));
// read data
delete in;
// repeat last two lines with new url
Jim Garrison
  • 85,615
  • 20
  • 155
  • 190
Nathan Osman
  • 71,149
  • 71
  • 256
  • 361

1 Answers1

0

Short answer? It's usually easier to use wxCurl or Boost's asio functions to do this kind of thing. wxHTTP has bitten me a few times...

RyanWilcox
  • 13,890
  • 1
  • 36
  • 60