HTTP server adding weird characters to its output
HTTP server adding weird characters to its output
HTTP server adding weird characters to its output
HTTP server adding weird characters to its output
HTTP server adding weird characters to its output
HTTP server adding weird characters to its output HTTP server adding weird characters to its output HTTP server adding weird characters to its output HTTP server adding weird characters to its output HTTP server adding weird characters to its output HTTP server adding weird characters to its output HTTP server adding weird characters to its output HTTP server adding weird characters to its output
HTTP server adding weird characters to its output HTTP server adding weird characters to its output
HTTP server adding weird characters to its output
Go Back  Xtreme Visual Basic Talk > > > HTTP server adding weird characters to its output


Reply
 
Thread Tools Display Modes
  #1  
Old 01-28-2011, 07:20 PM
Ninth Wave Ninth Wave is offline
Freshman
 
Join Date: Nov 2005
Location: Australia
Posts: 35
Question HTTP server adding weird characters to its output


I am using Winsock in VB6 to connect to a PHP script using the HTTP Post method.

Everything works well, however there is a problem and I cannot figure out where it is coming from.

In the data that I pick up, I keep seeing additional numbers or letters being interjected in my data. It is not there every time, only some of the time. It is always one or two charaters, letters or numbers.

here is a screenshot of what I mean.
http://i.imgur.com/WP8pL.jpg

Does anyone know what this could be or how to stop it?

I'm not sure if it is being sent by the http server or somehow being added to the string more locally.
Reply With Quote
  #2  
Old 01-28-2011, 10:43 PM
Ninth Wave Ninth Wave is offline
Freshman
 
Join Date: Nov 2005
Location: Australia
Posts: 35
Default

I found out that this was because I was using HTTP/1.1 in the request. This was causing the server to send the data chunked.

I changed it to HTTP/1.0 and it works all good.
Reply With Quote
  #3  
Old 01-29-2011, 01:34 PM
dilettante's Avatar
dilettanteHTTP server adding weird characters to its output dilettante is offline
Underclocked lifestyle

Forum Leader
* Guru *
 
Join Date: Feb 2005
Location: Michigan, USA
Posts: 4,529
Default

HTTP 1.0 is sloppy and inefficient though. Chunked transfer is a good thing. Why not just use one of the many, many components that already do HTTP properly, as well as doing HTTPS? Several are included in Windows so there is nothing to redist with your program.

Less work, fewer bugs.

http://www8.org/w8-papers/5c-protocols/key/key.html
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
HTTP server adding weird characters to its output
HTTP server adding weird characters to its output
HTTP server adding weird characters to its output HTTP server adding weird characters to its output
HTTP server adding weird characters to its output
HTTP server adding weird characters to its output
HTTP server adding weird characters to its output HTTP server adding weird characters to its output HTTP server adding weird characters to its output HTTP server adding weird characters to its output HTTP server adding weird characters to its output HTTP server adding weird characters to its output HTTP server adding weird characters to its output
HTTP server adding weird characters to its output
HTTP server adding weird characters to its output
 
HTTP server adding weird characters to its output
HTTP server adding weird characters to its output
 
-->