[vlc-devel] Adding Http post option to http module with parameters
fayyaz lodhi
fayyazkl at gmail.com
Tue Jul 23 04:55:13 CEST 2013
Thanks Remi - that was quite helpful.
> If you need to include body in the HTTP POST request, you are pretty
screwed
> since access_New() and stream_UrlNew() have no provisions for sending
data,
> only for receiving it. I suppose you do need a body, right?
Yes i do need body in the HTTP POST for including a few parameters. Do you
think that can be added in stream_UrlNew() or is it better to write it as a
separate portable api (linux and windows both are needed in my case)?
> You may want to factor out the code from modules/misc/audioscrobbler.c
into a
> reusable function instead... That seems more tractable.
Is this still helpful when i need to pass parameters in POST body?
Lastly, i tried using qt's http support as well. However, the problem is
that i need to make calls at instances outside the qt module even from some
c components. Is there is a possibility of getting around this?
On Mon, Jul 22, 2013 at 9:20 PM, Rémi Denis-Courmont <remi at remlab.net>wrote:
> Le lundi 22 juillet 2013 12:35:54 fayyaz lodhi a écrit :
> > Problem is that access_New() in access.c is called from many locations in
> > src/input/stream.c
>
> Yes. That would rather be stream_UrlNew() though.
>
> > I am not sure if making changes in all of these occurrences make sense
> and
> > would work.
>
> If you need to include body in the HTTP POST request, you are pretty
> screwed
> since access_New() and stream_UrlNew() have no provisions for sending data,
> only for receiving it. I suppose you do need a body, right?
>
> > Am I on the right track? Or will i disturb the module loading mechanism?
>
> You may want to factor out the code from modules/misc/audioscrobbler.c
> into a
> reusable function instead... That seems more tractable.
>
> --
> Rémi Denis-Courmont
> http://www.remlab.net/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20130723/cfba00d7/attachment.html>
More information about the vlc-devel
mailing list