Discussion:
wxHTTP and asp pages
Fulvio Senore
2014-10-02 19:39:58 UTC
Permalink
I am trying to use wxHTTP to read a simple html page. The code is based
on the sample in the wiki.

The code works for many sites but it looks like reading an asp page
results in an empty string.

Unfortunately I need to read an asp page, so I made some searches.
Information is scarce but it looks like IIS is sending data in chunks
and wxHTTP does not understand it.

Has anybody been successful in reading an asp page with wxHTTP?

Thanks in advance

Fulvio Senore
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Fulvio Senore
2014-10-02 20:33:44 UTC
Permalink
Post by Fulvio Senore
I am trying to use wxHTTP to read a simple html page. The code is based
on the sample in the wiki.
The code works for many sites but it looks like reading an asp page
results in an empty string.
Unfortunately I need to read an asp page, so I made some searches.
Information is scarce but it looks like IIS is sending data in chunks
and wxHTTP does not understand it.
Has anybody been successful in reading an asp page with wxHTTP?
Thanks in advance
Fulvio Senore
Some debugging showed that the I got an empty string because this
conversion failed:

wxWCharBuffer wbuf(m_conv.cMB2WC(src, srcLen, &wlen));

The culprit was an 'รจ' character in the web page. I removed it and now I
can download the page. I do not need strange letters for my purpose
(that one was a leftover) so my problem is solved.

I am not a charset conversion expert so I have no idea whether the
problem was in my asp page or in wxHTTP.

Fulvio Senore
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...