[Qt-interest] Help Required to Perform HTTP Put using QNetworkAccessManger

Gargi Das gargidas19188 at gmail.com
Wed Dec 1 11:22:20 CET 2010


Yes Gopal

The main mistake was , the wrong parameters and Thiago mentioned, the url i
was forming was totally wrong, i needed to pass my credentials with the url
instead of passing them with the parameters.

I fixed that and the problem is solved.

Regards,


On Wed, Dec 1, 2010 at 3:49 PM, Gopalakrishna Bhat <gopalakbhat at gmail.com>wrote:

> It is nice if you posted what mistake you where doing. Someone else
> who might be searching for the same thing in the future might be
> helped. :)
>
> With regards,
> Gopalakrishna
>
> On Wed, Dec 1, 2010 at 3:42 PM, Gargi Das <gargidas19188 at gmail.com> wrote:
> > Hello Guys
> >
> > I solved my problem :-)
> >
> > Anybody interested to know what wrong i was doing.
> >
> > Regards,
> >
> > On Wed, Dec 1, 2010 at 2:06 PM, Gargi Das <gargidas19188 at gmail.com>
> wrote:
> >>
> >> Hello Mandeep and Thiago
> >>
> >> Thanks for your reply.
> >>
> >> I am pretty sure that i am giving the correct credentials as using that
> >> credentials i am able to perform other post calls in my application.
> >>
> >> Then also i will again confirm that.
> >>
> >> @mandeep, yes i am getting the same output, i have widget using which i
> am
> >> doing this which has a button and textbrowser to see the output.
> >>
> >> But i am not getting the valid output. :-(
> >>
> >> Are you guys very much sure that the way i am making put is correct, i
> >> dont know why but i feel something is wrong in there.
> >>
> >> Regards
> >> On Wed, Dec 1, 2010 at 1:29 PM, Mandeep Sandhu
> >> <mandeepsandhu.chd at gmail.com> wrote:
> >>>
> >>> On Wed, Dec 1, 2010 at 12:13 PM, Gargi Das <gargidas19188 at gmail.com>
> >>> wrote:
> >>> > Hello Mandeep
> >>> >
> >>> > Thanks for the reply . :-)
> >>> >
> >>> > Yes the server supports put request. As in iphone i am able to do
> that.
> >>> >
> >>> > I have tried using POST but i get a reply that on the particular link
> >>> > POST
> >>> > is not supported.
> >>>
> >>> Please reply to the list...and don't top-post.
> >>>
> >>> As Thiago said, check if your user credentials are correct and whether
> >>> the query params are correct or not.
> >>>
> >>> When I try to access the said URL (from a QT program) I was being
> >>> redirect to the login page (contents of reply: "<html><body>You are
> >>> being <a
> >>> href="http://dev.footfeed.com/login">redirected</a>.</body></html>").
> >>>
> >>> You could also try using a different program (like wget) to check if
> >>> you are able to login with these query params.
> >>>
> >>> -mandeep
> >>
> >>
> >>
> >> --
> >> Gargi Das
> >>
> >> "You see things; and you say 'Why?' But I dream things that never were;
> >> and I say 'Why not?' "
> >>
> >> Forum Nokia Champion
> >>
> >> http://mobapps.org/PyS60
> >> gargidas.blogspot.com
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
> > --
> > Gargi Das
> >
> > "You see things; and you say 'Why?' But I dream things that never were;
> and
> > I say 'Why not?' "
> >
> > Forum Nokia Champion
> >
> > http://mobapps.org/PyS60
> > gargidas.blogspot.com
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Qt-interest mailing list
> > Qt-interest at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-interest
> >
> >
>
>
>
> --
> My blog http://gkbhat.blogspot.com
>



-- 
Gargi Das

"You see things; and you say 'Why?' But I dream things that never were; and
I say 'Why not?' "

Forum Nokia Champion

http://mobapps.org/PyS60
gargidas.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101201/6725923a/attachment.html 


More information about the Qt-interest-old mailing list