# HTTPSocket - Receives Headers OK, not Content?

**URL:** <https://forum.xojo.com/t/httpsocket-receives-headers-ok-not-content/20721>\
**Category:** General\
**Created:** [December 8, 2014, 3:13am UTC](https://forum.xojo.com/t/httpsocket-receives-headers-ok-not-content/20721 "2014-12-08T03:13:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [December 8, 2014, 3:13am UTC](https://forum.xojo.com/t/httpsocket-receives-headers-ok-not-content/20721/1 "2014-12-08T03:13:33Z")

</div>

I’m working with [ModTools](http://itunes.apple.com/us/app/modtools/id926385293?mt=12) right now to add support for [BotScout](http://botscout.com), except when I connect to the API I get no PageReceived event, and no data coming down with ReceiveProgress. I get all the headers fine, and a HTTP Status 200 - OK; but zero content which does no good.

I’ve contacted the site owner and he doesn’t seem to have any ideas, and my only guess thus far is CloudFlare but I haven’t had issues with other applications and CloudFlare. I’m looking for any advice anyone might have.

[code]Test URL: [http://botscout.com/test/?multi&name=test&key=FakeKeyShouldGetError](http://botscout.com/test/?multi&name=test&key=FakeKeyShouldGetError)  
Headers:

HTTP/1.1 200 OK  
Date: Mon, 08 Dec 2014 03:11:35 GMT  
Content-Type: text/html  
Connection: close  
Set-Cookie: \_\_cfduid=dc8be287ee9d9f6a81d7ac11d69364a451418008295; expires=Tue, 08-Dec-15 03:11:35 GMT; path=/; [domain=.botscout.com](http://domain=.botscout.com); HttpOnly  
X-Powered-By: PHP/5.3.10-1~dotdeb.1  
Vary: Accept-Encoding  
Server: cloudflare-nginx  
CF-RAY: 1955c6c827950168-ORD  
[/code]

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [December 8, 2014, 5:41am UTC](https://forum.xojo.com/t/httpsocket-receives-headers-ok-not-content/20721/2 "2014-12-08T05:41:10Z")

</div>

The problem may be that it’s speaking HTTP/1.1 and our sockets are currently only 1.0. You’ll notice there’s no Content-Length header in the response. It may be that it’s trying to send a chunked response which we don’t support.

one other thing… Most APIs use HTTPS. Are you using an HTTPSocket or an HTTPSecureSocket?

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 5:31pm UTC](https://forum.xojo.com/t/httpsocket-receives-headers-ok-not-content/20721/3 "2020-10-29T17:31:03Z")

</div>


