[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Using raw to post data



I was little surprised to see the content-length change when you changed that. Scott might know if that is the way it works but I thought additional headers were headers and not content.

Reading up on Connection:close real quick looks like it should have been okay. I think the protocol calls for closing the connection after the response, so that should have been okay. Basically, you would be telling the server that it is okay to close the connection when they are finished. It appears that was the default behavior on HTTP 1.0 but can be assigned using HTTP 1.1

Which brings us to this:
POST / HTTP/1.1

Where are you posting this to? It appears you might have missed the actual location of the service.


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Michael Ryan
Sent: Friday, February 27, 2015 12:19 PM
To: HTTPAPI and FTPAPI Projects
Subject: Re: Using raw to post data

Well, it made sense to take it out the CONNCLOSE additional header...I need to wait until the user does something...still getting the same error though. Here's the latest debug log.

On Fri, Feb 27, 2015 at 1:15 PM, Michael Ryan <michaelrtr@xxxxxxxxx> wrote:

> Hmmm...I'll take that out and see what happend. Thanks Mike.
>
> On Fri, Feb 27, 2015 at 1:11 PM, Mike Krebs 
> <mkrebs@xxxxxxxxxxxxxxxxxx>
> wrote:
>
>> Some of the things you see in the debug are in fact the headers that 
>> are being sent and Content-Length is one of them. I didn't count the 
>> bytes but
>> 140 seems about right.
>>
>> The recvresp(): end with err is new one for me. I am used to seeing 
>> something more descriptive there. I wonder if that is related to
>> Connection: close being sent.  That doesn't seem right to me.
>>
>>
>> -----Original Message-----
>> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:
>> ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Michael Ryan
>> Sent: Friday, February 27, 2015 11:41 AM
>> To: HTTPAPI and FTPAPI Projects
>> Subject: Using raw to post data
>>
>> I've modified an existing program to talk to a device. I know I'm 
>> hitting it - I can see the device light up. But I don't get a valid 
>> response - seems like it's an error. I've attached the debug 
>> log...can anyone shed any light? The vendor suggested that 
>> content-length wasn't being passed. I can't see the actual headers in 
>> the debug log, but the log certainly indicated content-length was passed. Thanks!
>> ---------------------------------------------------------------------
>> -- This is the FTPAPI mailing list.  To unsubscribe, please go to:
>> http://www.scottklement.com/mailman/listinfo/ftpapi
>> ---------------------------------------------------------------------
>> --
>>
>
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------