Erlang Mailing Lists

Author Message

<  Yaws mailing list  ~  Setting host header in SOAP request

Guest
Posted: Tue Jan 26, 2010 2:05 pm Reply with quote
Guest
Hello,

I am trying to interact with a webservice in the same way as in the example to the weather service. The weather service works fine, but the webservice I am trying seemed to give an HTML response, so I sniffed the request, which was a 404 ("Apache/2.0.54 (Fedora) Server at localhost Port 8800"). I connected to that same webservice using C#, which worked, and sniffed that request. The only difference I notice is that with C#, the correct host is sent in the HTTP headers, while when using Yaws SOAP, the host is set to "localhost:8800".

Apparently the host and port are hardcoded in yaws_soap_lib.erl:inets_request/7. Last September Anton marked this as a bug, but I cannot find any replies or clean solutions. I do not want to hardcode the correct host, as several different hosts need to be used. Is there a way to not touch Yaws' source code and still set the host header?

Stephan

Post received from mailinglist
Guest
Posted: Thu Jan 28, 2010 4:40 pm Reply with quote
Guest
2010/1/26 St
Guest
Posted: Thu Jan 28, 2010 5:10 pm Reply with quote
Guest
Hi Steve,

Thank you for your reply. I understand it isn't the most heavily used functionality, so when I got no replies I did change the source code. To all call functions I added a variable 'Host', which is passed to the actual HTTP call, where I simply replaced the hardcoded value of "localhost:8800" by the variable Host. It works fine for me, and the changes were small enough to not let other people put too much effort in finding better solutions. A more general solution where a host can be set, and if not, a default value is used, would be a cleaner solution.

St
Guest
Posted: Sat Feb 06, 2010 9:22 pm Reply with quote
Guest
2010/1/28 St
cheung
Posted: Tue Feb 21, 2012 3:28 am Reply with quote
Guest
Gingrich made his remarks at a rally in the congressional district Nike Air Max 2012 he represented for 20 years, speaking to a few hundred supporters. Nike Air Max LTD 2 He planned several campaign stops across Air Max Georgia on Saturday Nike Air Max 1 with Herman Cain, a fellow Georgian and former contender for the GOP nomination who has since endorsed Gingrich.CNN Cheap Air Max was forced to cancel the debate, scheduled to take place in Atlanta on March 1, after Mitt Romney declined to participate. Nike Air Max 95 Rick Santorum quickly followed suit.The cancellation was a blow to Gingrich, who is banking on a strong showing on Super Tuesday, March 6, in Air Max 95 Cheap Georgia, Ohio and eight other states holding contests that day."The average Georgian is going to say, the average Nike Air Max 90 Ohioan is going to say, `Let me get this straight. They won't come here to debate Nike Air Max but they want my vote?"' Gingrich said, adding, "Anybody who's Nike Air Max Classic BW afraid of debating Newt Gingrich isn't going to be in very good shape to debate Barack Obama."Gingrich, whose sole win Asics Tiger came in South Carolina's Asics Mexico 66 primary Jan. 21, conceded winning Georgia was "crucial" Asics Kaufen to sustaining his presidential bid. His candidacy has struggled since Romney soundly beat him in Florida Jan. 31 and Santorum won contests in Colorado, Minnesota and Missouri on Feb. 7. “You have an opportunity to speak loudly,” Santorum said at an appearance in Mason, Ohio. Asics Onitsuka Tiger“Give a clear contrast between the two leaders who want to lead this country. Give Asics Turnschuhe America a clear choice.” Though Romney was born and raised in Michigan, his wealthy upbringing and work as a private-equity executive has made it hard for him to connect with working-class voters.The event was sponsored by the Günstige Onitsuka Tiger Sneakers Michigan Faith and Freedom Coalition, three Macomb County tea party groups and the county Republican Party. Asics Mexico 66 günstig The rally was punctuated by gospel singing and speeches Asics Tiger Mexico 66 by ministers.
wuji
Posted: Fri Sep 14, 2012 7:45 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
Michigan passed a ban on the procedure.In one contentious case, he helped helped cheap authentic jordans helped Hugh Gale, a 70-year-old with emphysema and congestive heart disease, to
but investigators reportedly found papers that showed Kevorkian altered the account of of buy real jordans of the death, deleting Gale's request to halt the procedure.But it was
1998 episode of CBS's "60 Minutes," showing Kevorkian giving a lethal injection injection authentic jordans injection to Thomas Youk, 52, who suffered from Lou Gehrig's disease, or
lateral sclerosis, that led to Kevorkian's conviction on second degree murder charges."He charges."He cheap polo shirts charges."He was a complex man, the smartest man I ever met," said
Fieger, the lawyer who got Kevorkian acquitted eight times."We had a love-hate love-hate knockoff designer *beep* love-hate relationship," Fieger told ABCNews.com last year. "It was a father-son relationship
me being the father and he being the son. I was up up cheap designer *beep* up against the governor, politicians, police and the prosecutors, but the biggest
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum