Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http_request can't run from MS script properly #807

Closed
LadyCailinBot opened this issue Sep 12, 2013 · 6 comments
Closed

http_request can't run from MS script properly #807

LadyCailinBot opened this issue Sep 12, 2013 · 6 comments

Comments

@LadyCailinBot
Copy link

CMDHELPER-2802 - Reported by Mateusz.Stefaniak

Hi,

When I have alais wchich is using http_request in contig.txt it runs properly, but if I move it to separete procedure in other name.ms file and run alais by including and running this procedure I got empty-body response from server. It's a bug, because it is not empty. It seems like the http_request callback success function is runing before the response is given from server.

@LadyCailinBot
Copy link
Author

Comment by LadyCailin

Please do not mark bugs as major, we will triage them appropriately.

@LadyCailinBot
Copy link
Author

Comment by LadyCailin

Please post your code, as this appears to work.

@LadyCailinBot
Copy link
Author

Comment by Lildirt

The only issue I could think of is you aren't returning properly at the end of the proc. The proc isn't automatically set to whatever it should be returning, mind you. That's something you're meant to do yourself.

Otherwise, I'm clueless.

@LadyCailinBot
Copy link
Author

Comment by kookster

i have a working http_request in a alias, bind and proc. So I am unable to reproduce this.

@LadyCailinBot
Copy link
Author

Comment by Mateusz.Stefaniak

contig.txt -> http://paste.thezomg.com/11155/37901968/
includes/functions.ms -> http://paste.thezomg.com/11183/93539571/

Alias "test1" gives response, but test2 "gives" empty body of page with correct headers etc.

@LadyCailinBot
Copy link
Author

Comment by CyaNox

Using mostly the provided code I am capable of receiving content using both /test1 and /test2.

I changed the URL to http://google.com/ for both cases and received googles complaining about improper use of POST perfectly fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant