in reply to Re: File not posted to a HTTPS website
in thread File not posted to a HTTPS website

Thanks for your reply.
The content_type was a copy paste problem. I have it only once in my code.
Also this piece of code you had suggested did not work and i get the following error
You need a request object, not a HTTP::Response object at Upload_V6.pl line 107
My code always gives this erorr
Content-Length header value was wrong, fixed at C:/Perl/lib/LWP/Protocol/http.pm line 189.

Replies are listed 'Best First'.
Re^3: File not posted to a HTTPS website
by Corion (Patriarch) on Nov 07, 2007 at 07:30 UTC

    Then get out a network sniffer or use use LWP::Debug qw(+) to see what gets sent over the wire.

    There is no way we can help you debug this situation, as you do not show us the whole code, especially line 107, nor information on the data, nor what Content-Length value you sent and why LWP::Protocol::http feels the need to override it.

    That warning might be a red herring, but you don't tell us what the server sends as result page after your upload, and you also don't tell what the server error logs say.

      Thanks once again.
      The server sends us a text file as the acknowlegement after upload. What i see in the text file is default error information i.e, File not imported.
      I use LWP::Debug qw(+) and this how i found out this error:
      Content-Length header value was wrong, fixed at C:/Perl/lib/LWP/Protocol/http.pm line 189.

      My assumption is that the file is not being sent to the website atall.

      I dont have access to the server logs as this server is not maintained by us
      Thanks once again
      Karthik
        My assumption is that the file is not being sent to the website atall.

        You can assume all you want, all day long, but it won't get you any further with this problem. Also, you have provided no additional information that helps us discern the nature of your problem at hand. In fact, part of your problem seems to be that you are bad at diagnosing things and identifying steps to move from assumptions to facts. You could of course simply call the administrators of the remote server to provide information.

        So, find out exactly what gets sent over the wire. I have already provided you with information how to find that out. If you care, you can tell us about it. But if you don't, we can keep playing "Guess my problem" for years to come.