Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » httprequest fails getting entire url content
Re: httprequest fails getting entire url content [message #57720 is a reply to message #57716] Thu, 02 December 2021 09:37 Go to previous messageGo to previous message
aquilarubra is currently offline  aquilarubra
Messages: 24
Registered: December 2019
Promising Member
I'm trying to debug.

I see that the source is something like this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><result><metadata><count>1</count><limit>20</limit><offset>0</offset></metadata><smsList><sms>...


But I get this in HttpResponse:
{"metadata":{"count":1,"offset":0,"limit":20},"smsList":ERROR: Unexpected end of text.


So, the xml parser is engaged by HttpResponse. I see that the error "Unexpected end of text" is in uppsrc/ide/Designers/Xml.cpp, uppsrc/ide/Xml.cpp, and uppsrc/RichText/ParseQtf.cpp

I tried with request.ContentType("text/plain"), but it is still parsed. Is there any way to bypass that behavior?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Segfault while using BiVector
Next Topic: Dealing with background tasks elegantly in a userinterface
Goto Forum:
  


Current Time: Tue Aug 26 04:28:48 CEST 2025

Total time taken to generate the page: 0.05574 seconds